@aws-cdk/aws-ec2¶
AWS Compute and Networking Construct Library¶
The @aws-cdk/aws-ec2 package contains primitives for setting up networking and
instances.
VPC¶
Most projects need a Virtual Private Cloud to provide security by means of
network partitioning. This is easily achieved by creating an instance of
VpcNetwork:
import ec2 = require('@aws-cdk/aws-ec2');
const vpc = new ec2.VpcNetwork(this, 'VPC');
All default Constructs requires EC2 instances to be launched inside a VPC, so you should generally start by defining a VPC whenever you need to launch instances for your project.
Our default VpcNetwork class creates a private and public subnet for every
availability zone. Classes that use the VPC will generally launch instances
into all private subnets, and provide a parameter called vpcPlacement to
allow you to override the placement. Read more about
subnets.
Advanced Subnet Configuration¶
If you require the ability to configure subnets the VpcNetwork can be
customized with SubnetConfiguration array. This is best explained by an
example:
import ec2 = require('@aws-cdk/aws-ec2');
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', {
cidr: '10.0.0.0/21',
subnetConfiguration: [
{
cidrMask: 24,
name: 'Ingress',
subnetType: SubnetType.Public,
},
{
cidrMask: 24,
name: 'Application',
subnetType: SubnetType.Private,
},
{
cidrMask: 28,
name: 'Database',
subnetType: SubnetType.Isolated,
}
],
});
The example above is one possible configuration, but the user can use the constructs above to implement many other network configurations.
The VpcNetwork from the above configuration in a Region with three
availability zones will be the following:
- IngressSubnet1: 10.0.0.0/24
- IngressSubnet2: 10.0.1.0/24
- IngressSubnet3: 10.0.2.0/24
- ApplicationSubnet1: 10.0.3.0/24
- ApplicationSubnet2: 10.0.4.0/24
- ApplicationSubnet3: 10.0.5.0/24
- DatabaseSubnet1: 10.0.6.0/28
- DatabaseSubnet2: 10.0.6.16/28
- DatabaseSubnet3: 10.0.6.32/28
Each Public Subnet will have a NAT Gateway. Each Private Subnet will have a
route to the NAT Gateway in the same availability zone. Each Isolated subnet
will not have a route to the internet, but is routeable inside the VPC. The
numbers [1-3] will consistently map to availability zones (e.g. IngressSubnet1
and ApplicationSubnet1 will be in the same avialbility zone).
Isolated Subnets provide simplified secure networking principles, but come at
an operational complexity. The lack of an internet route means that if you deploy
instances in this subnet you will not be able to patch from the internet, this is
commonly reffered to as
fully baked images.
Features such as
cfn-signal
are also unavailable. Using these subnets for managed services (RDS,
Elasticache, Redshift) is a very practical use because the managed services do
not incur additional operational overhead.
Many times when you plan to build an application you don’t know how many instances of the application you will need and therefore you don’t know how much IP space to allocate. For example, you know the application will only have Elastic Loadbalancers in the public subnets and you know you will have 1-3 RDS databases for your data tier, and the rest of the IP space should just be evenly distributed for the application.
import ec2 = require('@aws-cdk/aws-ec2');
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', {
cidr: '10.0.0.0/16',
natGateways: 1,
subnetConfiguration: [
{
cidrMask: 26,
name: 'Public',
subnetType: SubnetType.Public,
},
{
name: 'Application',
subnetType: SubnetType.Private,
},
{
cidrMask: 27,
name: 'Database',
subnetType: SubnetType.Isolated,
}
],
});
The VpcNetwork from the above configuration in a Region with three
availability zones will be the following:
- PublicSubnet1: 10.0.0.0/26
- PublicSubnet2: 10.0.0.64/26
- PublicSubnet3: 10.0.2.128/26
- DatabaseSubnet1: 10.0.0.192/27
- DatabaseSubnet2: 10.0.0.224/27
- DatabaseSubnet3: 10.0.1.0/27
- ApplicationSubnet1: 10.0.64.0/18
- ApplicationSubnet2: 10.0.128.0/18
- ApplicationSubnet3: 10.0.192.0/18
Any subnet configuration without a cidrMask will be counted up and allocated
evenly across the remaining IP space.
Teams may also become cost conscious and be willing to trade availability for cost. For example, in your test environments perhaps you would like the same VPC as production, but instead of 3 NAT Gateways you would like only 1. This will save on the cost, but trade the 3 availability zone to a 1 for all egress traffic. This can be accomplished with a single parameter configuration:
import ec2 = require('@aws-cdk/aws-ec2');
const vpc = new ec2.VpcNetwork(stack, 'TheVPC', {
cidr: '10.0.0.0/16',
natGateways: 1,
natGatewayPlacement: {subnetName: 'Public'},
subnetConfiguration: [
{
cidrMask: 26,
name: 'Public',
subnetType: SubnetType.Public,
natGateway: true,
},
{
name: 'Application',
subnetType: SubnetType.Private,
},
{
cidrMask: 27,
name: 'Database',
subnetType: SubnetType.Isolated,
}
],
});
The VpcNetwork above will have the exact same subnet definitions as listed
above. However, this time the VPC will have only 1 NAT Gateway and all
Application subnets will route to the NAT Gateway.
Allowing Connections¶
In AWS, all network traffic in and out of Elastic Network Interfaces (ENIs)
is controlled by Security Groups. You can think of Security Groups as a
firewall with a set of rules. By default, Security Groups allow no incoming
(ingress) traffic and all outgoing (egress) traffic. You can add ingress rules
to them to allow incoming traffic streams. To exert fine-grained control over
egress traffic, set allowAllOutbound: false on the SecurityGroup, after
which you can add egress traffic rules.
You can manipulate Security Groups directly:
const mySecurityGroup = new ec2.SecurityGroup(this, 'SecurityGroup', {
vpc,
description: 'Allow ssh access to ec2 instances',
allowAllOutbound: true // Can be set to false
});
mySecurityGroup.addIngressRule(new ec2.AnyIPv4(), new ec2.TcpPort(22), 'allow ssh access from the world');
All constructs that create ENIs on your behalf (typically constructs that create EC2 instances or other VPC-connected resources) will all have security groups automatically assigned. Those constructs have an attribute called connections, which is an object that makes it convenient to update the security groups. If you want to allow connections between two constructs that have security groups, you have to add an Egress* rule to one Security Group, and an **Ingress rule to the other. The connections object will automatically take care of this for you:
// Allow connections from anywhere
loadBalancer.connections.allowFromAnyIpv4(new ec2.TcpPort(443), 'Allow inbound HTTPS');
// The same, but an explicit IP address
loadBalancer.connections.allowFrom(new ec2.CidrIpv4('1.2.3.4/32'), new ec2.TcpPort(443), 'Allow inbound HTTPS');
// Allow connection between AutoScalingGroups
appFleet.connections.allowTo(dbFleet, new ec2.TcpPort(443), 'App can call database');
Connection Peers¶
There are various classes that implement the connection peer part:
// Simple connection peers
let peer = new ec2.CidrIp("10.0.0.0/16");
let peer = new ec2.AnyIPv4();
let peer = new ec2.CidrIpv6("::0/0");
let peer = new ec2.AnyIPv6();
let peer = new ec2.PrefixList("pl-12345");
fleet.connections.allowTo(peer, new ec2.TcpPort(443), 'Allow outbound HTTPS');
Any object that has a security group can itself be used as a connection peer:
// These automatically create appropriate ingress and egress rules in both security groups
fleet1.connections.allowTo(fleet2, new ec2.TcpPort(80), 'Allow between fleets');
fleet.connections.allowTcpPort(80), 'Allow from load balancer');
Port Ranges¶
The connections that are allowed are specified by port ranges. A number of classes provide the connection specifier:
new ec2.TcpPort(80)
new ec2.TcpPortRange(60000, 65535)
new ec2.TcpAllPorts()
new ec2.AllConnections()
NOTE: This set is not complete yet; for example, there is no library support for ICMP at the moment. However, you can write your own classes to implement those.
Default Ports¶
Some Constructs have default ports associated with them. For example, the listener of a load balancer does (it’s the public port), or instances of an RDS database (it’s the port the database is accepting connections on).
If the object you’re calling the peering method on has a default port associated with it, you can call
allowDefaultPortFrom() and omit the port specifier. If the argument has an associated default port, call
allowToDefaultPort().
For example:
// Port implicit in listener
listener.connections.allowDefaultPortFromAnyIpv4('Allow public');
// Port implicit in peer
fleet.connections.allowToDefaultPort(rdsDatabase, 'Fleet can access database');
Reference¶
View in Nuget
csproj:
<PackageReference Include="Amazon.CDK.AWS.EC2" Version="0.14.0" />
dotnet:
dotnet add package Amazon.CDK.AWS.EC2 --version 0.14.0
packages.config:
<package id="Amazon.CDK.AWS.EC2" version="0.14.0" />
View in Maven Central
Apache Buildr:
'software.amazon.awscdk:ec2:jar:0.14.0'
Apache Ivy:
<dependency groupId="software.amazon.awscdk" name="ec2" rev="0.14.0"/>
Apache Maven:
<dependency>
<groupId>software.amazon.awscdk</groupId>
<artifactId>ec2</artifactId>
<version>0.14.0</version>
</dependency>
Gradle / Grails:
compile 'software.amazon.awscdk:ec2:0.14.0'
Groovy Grape:
@Grapes(
@Grab(group='software.amazon.awscdk', module='ec2', version='0.14.0')
)
View in NPM
npm:
$ npm i @aws-cdk/aws-ec2@0.14.0
package.json:
{
"@aws-cdk/aws-ec2": "^0.14.0"
}
yarn:
$ yarn add @aws-cdk/aws-ec2@0.14.0
View in NPM
npm:
$ npm i @aws-cdk/aws-ec2@0.14.0
package.json:
{
"@aws-cdk/aws-ec2": "^0.14.0"
}
yarn:
$ yarn add @aws-cdk/aws-ec2@0.14.0
AllTraffic¶
-
class
@aws-cdk/aws-ec2.AllTraffic¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AllTraffic;
const { AllTraffic } = require('@aws-cdk/aws-ec2');
import { AllTraffic } from '@aws-cdk/aws-ec2';
All Traffic
Implements: IPortRange-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
AmazonLinuxEdition (enum)¶
-
class
@aws-cdk/aws-ec2.AmazonLinuxEdition¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AmazonLinuxEdition;
const { AmazonLinuxEdition } = require('@aws-cdk/aws-ec2');
import { AmazonLinuxEdition } from '@aws-cdk/aws-ec2';
Amazon Linux edition
-
Standard¶
Standard edition
-
Minimal¶
Minimal edition
-
AmazonLinuxImage¶
-
class
@aws-cdk/aws-ec2.AmazonLinuxImage([props])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AmazonLinuxImage;
const { AmazonLinuxImage } = require('@aws-cdk/aws-ec2');
import { AmazonLinuxImage } from '@aws-cdk/aws-ec2';
Selects the latest version of Amazon Linux The AMI ID is selected using the values published to the SSM parameter store.
Implements: IMachineImageSourceParameters: props ( AmazonLinuxImagePropsorundefined) –-
getImage(parent) → @aws-cdk/aws-ec2.MachineImage¶ Implements
@aws-cdk/aws-ec2.IMachineImageSource.getImage()Return the image to use in the given context
Parameters: parent ( @aws-cdk/cdk.Construct) –Return type: MachineImage
-
AmazonLinuxImageProps (interface)¶
-
class
@aws-cdk/aws-ec2.AmazonLinuxImageProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AmazonLinuxImageProps;
// AmazonLinuxImageProps is an interfaceimport { AmazonLinuxImageProps } from '@aws-cdk/aws-ec2';
Amazon Linux image properties
-
edition¶ What edition of Amazon Linux to use
Type: AmazonLinuxEditionorundefined(abstract)
-
storage¶ What storage backed image to use
Type: AmazonLinuxStorageorundefined(abstract)
-
virtualization¶ Virtualization type
Type: AmazonLinuxVirtorundefined(abstract)
-
AmazonLinuxStorage (enum)¶
-
class
@aws-cdk/aws-ec2.AmazonLinuxStorage¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AmazonLinuxStorage;
const { AmazonLinuxStorage } = require('@aws-cdk/aws-ec2');
import { AmazonLinuxStorage } from '@aws-cdk/aws-ec2';
-
EBS¶
EBS-backed storage
-
GeneralPurpose¶
General Purpose-based storage (recommended)
-
AmazonLinuxVirt (enum)¶
-
class
@aws-cdk/aws-ec2.AmazonLinuxVirt¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AmazonLinuxVirt;
const { AmazonLinuxVirt } = require('@aws-cdk/aws-ec2');
import { AmazonLinuxVirt } from '@aws-cdk/aws-ec2';
Virtualization type for Amazon Linux
-
HVM¶
HVM virtualization (recommended)
-
PV¶
PV virtualization
-
AnyIPv4¶
-
class
@aws-cdk/aws-ec2.AnyIPv4¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AnyIPv4;
const { AnyIPv4 } = require('@aws-cdk/aws-ec2');
import { AnyIPv4 } from '@aws-cdk/aws-ec2';
Any IPv4 address
Extends: CidrIPv4-
toEgressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
cidrIp¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4Type: string (readonly)
-
connections¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4Type: Connections(readonly)
-
uniqueId¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv4A unique identifier for this connection peer
Type: string (readonly)
-
AnyIPv6¶
-
class
@aws-cdk/aws-ec2.AnyIPv6¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.AnyIPv6;
const { AnyIPv6 } = require('@aws-cdk/aws-ec2');
import { AnyIPv6 } from '@aws-cdk/aws-ec2';
Any IPv6 address
Extends: CidrIPv6-
toEgressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
cidrIpv6¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6Type: string (readonly)
-
connections¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6Type: Connections(readonly)
-
uniqueId¶ Inherited from
@aws-cdk/aws-ec2.CidrIPv6A unique identifier for this connection peer
Type: string (readonly)
-
CidrIPv4¶
-
class
@aws-cdk/aws-ec2.CidrIPv4(cidrIp)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.CidrIPv4;
const { CidrIPv4 } = require('@aws-cdk/aws-ec2');
import { CidrIPv4 } from '@aws-cdk/aws-ec2';
A connection to and from a given IP range
Implements: ISecurityGroupRuleImplements: IConnectableParameters: cidrIp (string) – -
toEgressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toEgressRuleJSON()Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toIngressRuleJSON()Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.canInlineRule()Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
cidrIp¶ Type: string (readonly)
-
connections¶ Implements
@aws-cdk/aws-ec2.IConnectable.connections()Type: Connections(readonly)
-
uniqueId¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.uniqueId()A unique identifier for this connection peer
Type: string (readonly)
-
CidrIPv6¶
-
class
@aws-cdk/aws-ec2.CidrIPv6(cidrIpv6)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.CidrIPv6;
const { CidrIPv6 } = require('@aws-cdk/aws-ec2');
import { CidrIPv6 } from '@aws-cdk/aws-ec2';
A connection to a from a given IPv6 range
Implements: ISecurityGroupRuleImplements: IConnectableParameters: cidrIpv6 (string) – -
toEgressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toEgressRuleJSON()Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toIngressRuleJSON()Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.canInlineRule()Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
cidrIpv6¶ Type: string (readonly)
-
connections¶ Implements
@aws-cdk/aws-ec2.IConnectable.connections()Type: Connections(readonly)
-
uniqueId¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.uniqueId()A unique identifier for this connection peer
Type: string (readonly)
-
ConnectionRule (interface)¶
-
class
@aws-cdk/aws-ec2.ConnectionRule¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.ConnectionRule;
// ConnectionRule is an interfaceimport { ConnectionRule } from '@aws-cdk/aws-ec2';
-
fromPort¶ Start of port range for the TCP and UDP protocols, or an ICMP type number. If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP type number).
Type: number (abstract)
-
description¶ Description of this connection. It is applied to both the ingress rule and the egress rule.
Type: string or undefined(abstract)
-
protocol¶ The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). Use -1 to specify all protocols. If you specify -1, or a protocol number other than tcp, udp, icmp, or 58 (ICMPv6), traffic on all ports is allowed, regardless of any ports you specify. For tcp, udp, and icmp, you must specify a port range. For protocol 58 (ICMPv6), you can optionally specify a port range; if you don’t, traffic for all types and codes is allowed.
Type: string or undefined(abstract)
-
toPort¶ End of port range for the TCP and UDP protocols, or an ICMP code. If you specify icmp for the IpProtocol property, you can specify -1 as a wildcard (i.e., any ICMP code).
Type: number or undefined(abstract)
-
Connections¶
-
class
@aws-cdk/aws-ec2.Connections(props)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.Connections;
const { Connections } = require('@aws-cdk/aws-ec2');
import { Connections } from '@aws-cdk/aws-ec2';
Manage the allowed network connections for constructs with Security Groups. Security Groups can be thought of as a firewall for network-connected devices. This class makes it easy to allow network connections to and from security groups, and between security groups individually. When establishing connectivity between security groups, it will automatically add rules in both security groups
Parameters: props ( ConnectionsProps) –-
allowDefaultPortFrom(other[, description])¶ Allow connections from the peer on our default port Even if the peer has a default port, we will always use our default port.
Parameters: - other (
IConnectable) – - description (string or
undefined) –
- other (
-
allowDefaultPortFromAnyIpv4([description])¶ Allow default connections from all IPv4 ranges
Parameters: description (string or undefined) –
-
allowDefaultPortInternally([description])¶ Allow hosts inside the security group to connect to each other
Parameters: description (string or undefined) –
-
allowDefaultPortTo(other[, description])¶ Allow connections from the peer on our default port Even if the peer has a default port, we will always use our default port.
Parameters: - other (
IConnectable) – - description (string or
undefined) –
- other (
-
allowFrom(other, portRange[, description])¶ Allow connections from the peer on the given port
Parameters: - other (
IConnectable) – - portRange (
IPortRange) – - description (string or
undefined) –
- other (
-
allowFromAnyIPv4(portRange[, description])¶ Allow from any IPv4 ranges
Parameters: - portRange (
IPortRange) – - description (string or
undefined) –
- portRange (
-
allowInternally(portRange[, description])¶ Allow hosts inside the security group to connect to each other on the given port
Parameters: - portRange (
IPortRange) – - description (string or
undefined) –
- portRange (
-
allowTo(other, portRange[, description])¶ Allow connections to the peer on the given port
Parameters: - other (
IConnectable) – - portRange (
IPortRange) – - description (string or
undefined) –
- other (
-
allowToAnyIPv4(portRange[, description])¶ Allow to all IPv4 ranges
Parameters: - portRange (
IPortRange) – - description (string or
undefined) –
- portRange (
-
allowToDefaultPort(other[, description])¶ Allow connections to the security group on their default port
Parameters: - other (
IConnectable) – - description (string or
undefined) –
- other (
-
securityGroupRule¶ The rule that defines how to represent this peer in a security group
Type: ISecurityGroupRule(readonly)
-
defaultPortRange¶ The default port configured for this connection peer, if available
Type: IPortRangeorundefined(readonly)
-
securityGroup¶ Underlying securityGroup for this Connections object, if present May be empty if this Connections object is not managing a SecurityGroup, but simply representing a Connectable peer.
Type: SecurityGroupReforundefined(readonly)
-
ConnectionsProps (interface)¶
-
class
@aws-cdk/aws-ec2.ConnectionsProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.ConnectionsProps;
// ConnectionsProps is an interfaceimport { ConnectionsProps } from '@aws-cdk/aws-ec2';
Properties to intialize a new Connections object
-
defaultPortRange¶ Default port range for initiating connections to and from this object
Type: IPortRangeorundefined(abstract)
-
securityGroup¶ What securityGroup this object is managing connections for
Type: SecurityGroupReforundefined(abstract)
-
securityGroupRule¶ Class that represents the rule by which others can connect to this connectable This object is required, but will be derived from securityGroup if that is passed.
Type: ISecurityGroupRuleorundefined(abstract)
-
DefaultInstanceTenancy (enum)¶
-
class
@aws-cdk/aws-ec2.DefaultInstanceTenancy¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.DefaultInstanceTenancy;
const { DefaultInstanceTenancy } = require('@aws-cdk/aws-ec2');
import { DefaultInstanceTenancy } from '@aws-cdk/aws-ec2';
The default tenancy of instances launched into the VPC.
-
Default¶
Instances can be launched with any tenancy.
-
Dedicated¶
Any instance launched into the VPC automatically has dedicated tenancy, unless you launch it with the default tenancy.
-
GenericLinuxImage¶
-
class
@aws-cdk/aws-ec2.GenericLinuxImage(amiMap)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.GenericLinuxImage;
const { GenericLinuxImage } = require('@aws-cdk/aws-ec2');
import { GenericLinuxImage } from '@aws-cdk/aws-ec2';
Construct a Linux machine image from an AMI map Linux images IDs are not published to SSM parameter store yet, so you’ll have to manually specify an AMI map.
Implements: IMachineImageSourceParameters: amiMap (string => string) – -
getImage(parent) → @aws-cdk/aws-ec2.MachineImage¶ Implements
@aws-cdk/aws-ec2.IMachineImageSource.getImage()Return the image to use in the given context
Parameters: parent ( @aws-cdk/cdk.Construct) –Return type: MachineImage
-
amiMap¶ Type: string => string (readonly)
-
IConnectable (interface)¶
-
class
@aws-cdk/aws-ec2.IConnectable¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IConnectable;
// IConnectable is an interfaceimport { IConnectable } from '@aws-cdk/aws-ec2';
The goal of this module is to make possible to write statements like this:
`ts * database.connections.allowFrom(fleet); * fleet.connections.allowTo(database); * rdgw.connections.allowFromCidrIp('0.3.1.5/86'); * rgdw.connections.allowTrafficTo(fleet, new AllPorts()); * `The insight here is that some connecting peers have information on what ports should be involved in the connection, and some don’t. An object that has a Connections object-
connections¶ Type: Connections(readonly) (abstract)
-
IMachineImageSource (interface)¶
-
class
@aws-cdk/aws-ec2.IMachineImageSource¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IMachineImageSource;
// IMachineImageSource is an interfaceimport { IMachineImageSource } from '@aws-cdk/aws-ec2';
Interface for classes that can select an appropriate machine image to use
-
getImage(parent) → @aws-cdk/aws-ec2.MachineImage¶ Return the image to use in the given context
Parameters: parent ( @aws-cdk/cdk.Construct) –Return type: MachineImageAbstract: Yes
-
IPortRange (interface)¶
-
class
@aws-cdk/aws-ec2.IPortRange¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IPortRange;
// IPortRange is an interfaceimport { IPortRange } from '@aws-cdk/aws-ec2';
Interface for classes that provide the connection-specification parts of a security group rule
-
canInlineRule¶ Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly) (abstract)
-
toRuleJSON() → any¶ Produce the ingress/egress rule JSON for the given connection
Return type: any or undefinedAbstract: Yes
-
ISecurityGroupRule (interface)¶
-
class
@aws-cdk/aws-ec2.ISecurityGroupRule¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.ISecurityGroupRule;
// ISecurityGroupRule is an interfaceimport { ISecurityGroupRule } from '@aws-cdk/aws-ec2';
Interface for classes that provide the peer-specification parts of a security group rule
-
canInlineRule¶ Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly) (abstract)
-
uniqueId¶ A unique identifier for this connection peer
Type: string (readonly) (abstract)
-
toEgressRuleJSON() → any¶ Produce the egress rule JSON for the given connection
Return type: any or undefinedAbstract: Yes
-
toIngressRuleJSON() → any¶ Produce the ingress rule JSON for the given connection
Return type: any or undefinedAbstract: Yes
-
IcmpAllTypeCodes¶
-
class
@aws-cdk/aws-ec2.IcmpAllTypeCodes(type)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IcmpAllTypeCodes;
const { IcmpAllTypeCodes } = require('@aws-cdk/aws-ec2');
import { IcmpAllTypeCodes } from '@aws-cdk/aws-ec2';
All ICMP Codes for a given ICMP Type
Implements: IPortRangeParameters: type (number) – -
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
type¶ Type: number (readonly)
-
IcmpAllTypesAndCodes¶
-
class
@aws-cdk/aws-ec2.IcmpAllTypesAndCodes¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IcmpAllTypesAndCodes;
const { IcmpAllTypesAndCodes } = require('@aws-cdk/aws-ec2');
import { IcmpAllTypesAndCodes } from '@aws-cdk/aws-ec2';
All ICMP Types & Codes
Implements: IPortRange-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
IcmpPing¶
-
class
@aws-cdk/aws-ec2.IcmpPing¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IcmpPing;
const { IcmpPing } = require('@aws-cdk/aws-ec2');
import { IcmpPing } from '@aws-cdk/aws-ec2';
ICMP Ping traffic
Implements: IPortRange-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
IcmpTypeAndCode¶
-
class
@aws-cdk/aws-ec2.IcmpTypeAndCode(type, code)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.IcmpTypeAndCode;
const { IcmpTypeAndCode } = require('@aws-cdk/aws-ec2');
import { IcmpTypeAndCode } from '@aws-cdk/aws-ec2';
A set of matching ICMP Type & Code
Implements: Parameters: - type (number) –
- code (number) –
-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
code¶ Type: number (readonly)
-
type¶ Type: number (readonly)
InstanceClass (enum)¶
-
class
@aws-cdk/aws-ec2.InstanceClass¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.InstanceClass;
const { InstanceClass } = require('@aws-cdk/aws-ec2');
import { InstanceClass } from '@aws-cdk/aws-ec2';
What class and generation of instance to use We have both symbolic and concrete enums for every type. The first are for people that want to specify by purpose, the second one are for people who already know exactly what ‘R4’ means.
-
Standard3¶
Standard instances, 3rd generation
-
Standard4¶
Standard instances, 4th generation
-
Standard5¶
Standard instances, 5th generation
-
Memory3¶
Memory optimized instances, 3rd generation
-
Memory4¶
Memory optimized instances, 3rd generation
-
Compute3¶
Compute optimized instances, 3rd generation
-
Compute4¶
Compute optimized instances, 4th generation
-
Compute5¶
Compute optimized instances, 5th generation
-
Storage2¶
Storage-optimized instances, 2nd generation
-
StorageCompute1¶
Storage/compute balanced instances, 1st generation
-
Io3¶
I/O-optimized instances, 3rd generation
-
Burstable2¶
Burstable instances, 2nd generation
-
Burstable3¶
Burstable instances, 3rd generation
-
MemoryIntensive1¶
Memory-intensive instances, 1st generation
-
MemoryIntensive1Extended¶
Memory-intensive instances, extended, 1st generation
-
Fpga1¶
Instances with customizable hardware acceleration, 1st generation
-
Graphics3¶
Graphics-optimized instances, 3rd generation
-
Parallel2¶
Parallel-processing optimized instances, 2nd generation
-
Parallel3¶
Parallel-processing optimized instances, 3nd generation
-
InstanceSize (enum)¶
-
class
@aws-cdk/aws-ec2.InstanceSize¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.InstanceSize;
const { InstanceSize } = require('@aws-cdk/aws-ec2');
import { InstanceSize } from '@aws-cdk/aws-ec2';
What size of instance to use
-
None¶
-
Micro¶
-
Small¶
-
Medium¶
-
Large¶
-
XLarge¶
-
XLarge2¶
-
XLarge4¶
-
XLarge8¶
-
XLarge9¶
-
XLarge10¶
-
XLarge12¶
-
XLarge16¶
-
XLarge18¶
-
XLarge24¶
-
XLarge32¶
-
InstanceType¶
-
class
@aws-cdk/aws-ec2.InstanceType(instanceTypeIdentifier)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.InstanceType;
const { InstanceType } = require('@aws-cdk/aws-ec2');
import { InstanceType } from '@aws-cdk/aws-ec2';
Instance type for EC2 instances This class takes a literal string, good if you already know the identifier of the type you want.
Parameters: instanceTypeIdentifier (string) – -
toString() → string¶ Return the instance type as a dotted string
Return type: string
-
instanceTypeIdentifier¶ Type: string (readonly)
-
InstanceTypePair¶
-
class
@aws-cdk/aws-ec2.InstanceTypePair(instanceClass, instanceSize)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.InstanceTypePair;
const { InstanceTypePair } = require('@aws-cdk/aws-ec2');
import { InstanceTypePair } from '@aws-cdk/aws-ec2';
Instance type for EC2 instances This class takes a combination of a class and size. Be aware that not all combinations of class and size are available, and not all classes are available in all regions.
Extends: Parameters: - instanceClass (
InstanceClass) – - instanceSize (
InstanceSize) –
-
instanceClass¶ Type: InstanceClass(readonly)
-
instanceSize¶ Type: InstanceSize(readonly)
-
toString() → string¶ Inherited from
@aws-cdk/aws-ec2.InstanceTypeReturn the instance type as a dotted string
Return type: string
-
instanceTypeIdentifier¶ Inherited from
@aws-cdk/aws-ec2.InstanceTypeType: string (readonly)
- instanceClass (
LinuxOS¶
-
class
@aws-cdk/aws-ec2.LinuxOS¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.LinuxOS;
const { LinuxOS } = require('@aws-cdk/aws-ec2');
import { LinuxOS } from '@aws-cdk/aws-ec2';
OS features specialized for Linux
Extends: OperatingSystem-
createUserData(scripts) → string¶ Implements
@aws-cdk/aws-ec2.OperatingSystem.createUserData()Parameters: scripts (string[]) – Return type: string
-
type¶ Implements
@aws-cdk/aws-ec2.OperatingSystem.type()Type: OperatingSystemType(readonly)
-
MachineImage¶
-
class
@aws-cdk/aws-ec2.MachineImage(imageId, os)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.MachineImage;
const { MachineImage } = require('@aws-cdk/aws-ec2');
import { MachineImage } from '@aws-cdk/aws-ec2';
Representation of a machine to be launched Combines an AMI ID with an OS.
Parameters: - imageId (string) –
- os (
OperatingSystem) –
-
imageId¶ Type: string (readonly)
-
os¶ Type: OperatingSystem(readonly)
NetworkInterfaceSecondaryPrivateIpAddresses¶
-
class
@aws-cdk/aws-ec2.NetworkInterfaceSecondaryPrivateIpAddresses([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.NetworkInterfaceSecondaryPrivateIpAddresses;
const { NetworkInterfaceSecondaryPrivateIpAddresses } = require('@aws-cdk/aws-ec2');
import { NetworkInterfaceSecondaryPrivateIpAddresses } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
OperatingSystem¶
-
class
@aws-cdk/aws-ec2.OperatingSystem¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.OperatingSystem;
const { OperatingSystem } = require('@aws-cdk/aws-ec2');
import { OperatingSystem } from '@aws-cdk/aws-ec2';
Abstraction of OS features we need to be aware of
Abstract: Yes -
createUserData(scripts) → string¶ Parameters: scripts (string[]) – Return type: string Abstract: Yes
-
type¶ Type: OperatingSystemType(readonly) (abstract)
-
OperatingSystemType (enum)¶
-
class
@aws-cdk/aws-ec2.OperatingSystemType¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.OperatingSystemType;
const { OperatingSystemType } = require('@aws-cdk/aws-ec2');
import { OperatingSystemType } from '@aws-cdk/aws-ec2';
The OS type of a particular image
-
Linux¶
-
Windows¶
-
PrefixList¶
-
class
@aws-cdk/aws-ec2.PrefixList(prefixListId)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.PrefixList;
const { PrefixList } = require('@aws-cdk/aws-ec2');
import { PrefixList } from '@aws-cdk/aws-ec2';
A prefix list Prefix lists are used to allow traffic to VPC-local service endpoints. For more information, see this page: https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-endpoints.html
Implements: ISecurityGroupRuleImplements: IConnectableParameters: prefixListId (string) – -
toEgressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toEgressRuleJSON()Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toIngressRuleJSON()Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.canInlineRule()Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
connections¶ Implements
@aws-cdk/aws-ec2.IConnectable.connections()Type: Connections(readonly)
-
prefixListId¶ Type: string (readonly)
-
uniqueId¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.uniqueId()A unique identifier for this connection peer
Type: string (readonly)
-
Protocol (enum)¶
SecurityGroup¶
-
class
@aws-cdk/aws-ec2.SecurityGroup(parent, name, props)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SecurityGroup;
const { SecurityGroup } = require('@aws-cdk/aws-ec2');
import { SecurityGroup } from '@aws-cdk/aws-ec2';
Creates an Amazon EC2 security group within a VPC. This class has an additional optimization over SecurityGroupRef that it can also create inline ingress and egress rule (which saves on the total number of resources inside the template).
Extends: Implements: Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
SecurityGroupProps) –
-
addEgressRule(peer, connection[, description])¶ Overrides
@aws-cdk/aws-ec2.SecurityGroupRef.addEgressRule()Parameters: - peer (
ISecurityGroupRule) – - connection (
IPortRange) – - description (string or
undefined) –
- peer (
-
addIngressRule(peer, connection[, description])¶ Overrides
@aws-cdk/aws-ec2.SecurityGroupRef.addIngressRule()Parameters: - peer (
ISecurityGroupRule) – - connection (
IPortRange) – - description (string or
undefined) –
- peer (
-
groupName¶ An attribute that represents the security group name.
Type: string (readonly)
-
securityGroupId¶ Implements
@aws-cdk/aws-ec2.SecurityGroupRef.securityGroupId()The ID of the security group
Type: string (readonly)
Implements
@aws-cdk/cdk.ITaggable.tags()Manage tags for this construct and children
Type: @aws-cdk/cdk.TagManager(readonly)
-
vpcId¶ An attribute that represents the physical VPC ID this security group is part of.
Type: string (readonly)
-
export() → @aws-cdk/aws-ec2.SecurityGroupRefProps¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefExport this SecurityGroup for use in a different Stack
Return type: SecurityGroupRefProps
-
toEgressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefProduce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefProduce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefWhether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
connections¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefType: Connections(readonly)
-
defaultPortRange¶ Inherited from
@aws-cdk/aws-ec2.SecurityGroupRefFIXME: Where to place this??
Type: IPortRangeorundefined(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
SecurityGroupProps (interface)¶
-
class
@aws-cdk/aws-ec2.SecurityGroupProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SecurityGroupProps;
// SecurityGroupProps is an interfaceimport { SecurityGroupProps } from '@aws-cdk/aws-ec2';
-
vpc¶ The VPC in which to create the security group.
Type: VpcNetworkRef(abstract)
-
allowAllOutbound¶ Whether to allow all outbound traffic by default. If this is set to true, there will only be a single egress rule which allows all outbound traffic. If this is set to false, no outbound traffic will be allowed by default and all egress traffic must be explicitly authorized.
Type: boolean or undefined(abstract)
-
description¶ A description of the security group.
Type: string or undefined(abstract)
-
groupName¶ The name of the security group. For valid values, see the GroupName parameter of the CreateSecurityGroup action in the Amazon EC2 API Reference. It is not recommended to use an explicit group name.
Type: string or undefined(abstract)
The AWS resource tags to associate with the security group.
Type: string => string or undefined(abstract)
-
SecurityGroupRef¶
-
class
@aws-cdk/aws-ec2.SecurityGroupRef(parent, id)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SecurityGroupRef;
const { SecurityGroupRef } = require('@aws-cdk/aws-ec2');
import { SecurityGroupRef } from '@aws-cdk/aws-ec2';
A SecurityGroup that is not created in this template
Extends: Implements: Implements: Abstract: Yes
Parameters: - parent (
@aws-cdk/cdk.Construct) – The parent construct - id (string) –
-
static
import(parent, id, props) → @aws-cdk/aws-ec2.SecurityGroupRef¶ Import an existing SecurityGroup
Parameters: - parent (
@aws-cdk/cdk.Construct) – - id (string) –
- props (
SecurityGroupRefProps) –
Return type: - parent (
-
addEgressRule(peer, connection[, description])¶ Parameters: - peer (
ISecurityGroupRule) – - connection (
IPortRange) – - description (string or
undefined) –
- peer (
-
addIngressRule(peer, connection[, description])¶ Parameters: - peer (
ISecurityGroupRule) – - connection (
IPortRange) – - description (string or
undefined) –
- peer (
-
export() → @aws-cdk/aws-ec2.SecurityGroupRefProps¶ Export this SecurityGroup for use in a different Stack
Return type: SecurityGroupRefProps
-
toEgressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toEgressRuleJSON()Produce the egress rule JSON for the given connection
Return type: any or undefined
-
toIngressRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.toIngressRuleJSON()Produce the ingress rule JSON for the given connection
Return type: any or undefined
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.ISecurityGroupRule.canInlineRule()Whether the rule can be inlined into a SecurityGroup or not
Type: boolean (readonly)
-
connections¶ Implements
@aws-cdk/aws-ec2.IConnectable.connections()Type: Connections(readonly)
-
securityGroupId¶ Type: string (readonly) (abstract)
-
defaultPortRange¶ FIXME: Where to place this??
Type: IPortRangeorundefined(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
SecurityGroupRefProps (interface)¶
-
class
@aws-cdk/aws-ec2.SecurityGroupRefProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SecurityGroupRefProps;
// SecurityGroupRefProps is an interfaceimport { SecurityGroupRefProps } from '@aws-cdk/aws-ec2';
-
securityGroupId¶ ID of security group
Type: string (abstract)
-
SubnetConfiguration (interface)¶
-
class
@aws-cdk/aws-ec2.SubnetConfiguration¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SubnetConfiguration;
// SubnetConfiguration is an interfaceimport { SubnetConfiguration } from '@aws-cdk/aws-ec2';
Specify configuration parameters for a VPC to be built
-
name¶ The common Logical Name for the VpcSubnet Thi name will be suffixed with an integer correlating to a specific availability zone.
Type: string (abstract)
-
subnetType¶ The type of Subnet to configure. The Subnet type will control the ability to route and connect to the Internet.
Type: SubnetType(abstract)
-
cidrMask¶ The CIDR Mask or the number of leading 1 bits in the routing mask Valid values are 16 - 28
Type: number or undefined(abstract)
The AWS resource tags to associate with the resource.
Type: string => string or undefined(abstract)
-
SubnetIpv6CidrBlocks¶
-
class
@aws-cdk/aws-ec2.SubnetIpv6CidrBlocks([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SubnetIpv6CidrBlocks;
const { SubnetIpv6CidrBlocks } = require('@aws-cdk/aws-ec2');
import { SubnetIpv6CidrBlocks } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
SubnetType (enum)¶
-
class
@aws-cdk/aws-ec2.SubnetType¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.SubnetType;
const { SubnetType } = require('@aws-cdk/aws-ec2');
import { SubnetType } from '@aws-cdk/aws-ec2';
The type of Subnet
-
Isolated¶
Isolated Subnets do not route Outbound traffic This can be good for subnets with RDS or Elasticache endpoints
-
Private¶
Subnet that routes to the internet, but not vice versa. Instances in a private subnet can connect to the Internet, but will not allow connections to be initiated from the Internet. Outbound traffic will be routed via a NAT Gateway. Preference being in the same AZ, but if not available will use another AZ (control by specifing maxGateways on VpcNetwork). This might be used for experimental cost conscious accounts or accounts where HA outbound traffic is not needed.
-
Public¶
Subnet connected to the Internet Instances in a Public subnet can connect to the Internet and can be connected to from the Internet as long as they are launched with public IPs (controlled on the AutoScalingGroup or other constructs that launch instances). Public subnets route outbound traffic via an Internet Gateway.
-
TcpAllPorts¶
-
class
@aws-cdk/aws-ec2.TcpAllPorts¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.TcpAllPorts;
const { TcpAllPorts } = require('@aws-cdk/aws-ec2');
import { TcpAllPorts } from '@aws-cdk/aws-ec2';
All TCP Ports
Implements: IPortRange-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
TcpPort¶
-
class
@aws-cdk/aws-ec2.TcpPort(port)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.TcpPort;
const { TcpPort } = require('@aws-cdk/aws-ec2');
import { TcpPort } from '@aws-cdk/aws-ec2';
A single TCP port
Implements: IPortRangeParameters: port (number) – -
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
port¶ Type: number (readonly)
-
TcpPortFromAttribute¶
-
class
@aws-cdk/aws-ec2.TcpPortFromAttribute(port)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.TcpPortFromAttribute;
const { TcpPortFromAttribute } = require('@aws-cdk/aws-ec2');
import { TcpPortFromAttribute } from '@aws-cdk/aws-ec2';
A single TCP port that is provided by a resource attribute
Implements: IPortRangeParameters: port (string) – -
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
port¶ Type: string (readonly)
-
TcpPortRange¶
-
class
@aws-cdk/aws-ec2.TcpPortRange(startPort, endPort)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.TcpPortRange;
const { TcpPortRange } = require('@aws-cdk/aws-ec2');
import { TcpPortRange } from '@aws-cdk/aws-ec2';
A TCP port range
Implements: Parameters: - startPort (number) –
- endPort (number) –
-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
endPort¶ Type: number (readonly)
-
startPort¶ Type: number (readonly)
UdpAllPorts¶
-
class
@aws-cdk/aws-ec2.UdpAllPorts¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.UdpAllPorts;
const { UdpAllPorts } = require('@aws-cdk/aws-ec2');
import { UdpAllPorts } from '@aws-cdk/aws-ec2';
All UDP Ports
Implements: IPortRange-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
UdpPort¶
-
class
@aws-cdk/aws-ec2.UdpPort(port)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.UdpPort;
const { UdpPort } = require('@aws-cdk/aws-ec2');
import { UdpPort } from '@aws-cdk/aws-ec2';
A single UDP port
Implements: IPortRangeParameters: port (number) – -
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
port¶ Type: number (readonly)
-
UdpPortFromAttribute¶
-
class
@aws-cdk/aws-ec2.UdpPortFromAttribute(port)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.UdpPortFromAttribute;
const { UdpPortFromAttribute } = require('@aws-cdk/aws-ec2');
import { UdpPortFromAttribute } from '@aws-cdk/aws-ec2';
A single UDP port that is provided by a resource attribute
Implements: IPortRangeParameters: port (string) – -
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
port¶ Type: string (readonly)
-
UdpPortRange¶
-
class
@aws-cdk/aws-ec2.UdpPortRange(startPort, endPort)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.UdpPortRange;
const { UdpPortRange } = require('@aws-cdk/aws-ec2');
import { UdpPortRange } from '@aws-cdk/aws-ec2';
A UDP port range
Implements: Parameters: - startPort (number) –
- endPort (number) –
-
toRuleJSON() → any¶ Implements
@aws-cdk/aws-ec2.IPortRange.toRuleJSON()Produce the ingress/egress rule JSON for the given connection
Return type: any or undefined
-
toString() → string¶ Returns a string representation of an object.
Return type: string
-
canInlineRule¶ Implements
@aws-cdk/aws-ec2.IPortRange.canInlineRule()Whether the rule containing this port range can be inlined into a securitygroup or not.
Type: boolean (readonly)
-
endPort¶ Type: number (readonly)
-
startPort¶ Type: number (readonly)
VPCCidrBlockAssociations¶
-
class
@aws-cdk/aws-ec2.VPCCidrBlockAssociations([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VPCCidrBlockAssociations;
const { VPCCidrBlockAssociations } = require('@aws-cdk/aws-ec2');
import { VPCCidrBlockAssociations } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
VPCEndpointDnsEntries¶
-
class
@aws-cdk/aws-ec2.VPCEndpointDnsEntries([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VPCEndpointDnsEntries;
const { VPCEndpointDnsEntries } = require('@aws-cdk/aws-ec2');
import { VPCEndpointDnsEntries } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
VPCEndpointNetworkInterfaceIds¶
-
class
@aws-cdk/aws-ec2.VPCEndpointNetworkInterfaceIds([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VPCEndpointNetworkInterfaceIds;
const { VPCEndpointNetworkInterfaceIds } = require('@aws-cdk/aws-ec2');
import { VPCEndpointNetworkInterfaceIds } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
VPCIpv6CidrBlocks¶
-
class
@aws-cdk/aws-ec2.VPCIpv6CidrBlocks([valueOrFunction[, displayName]])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VPCIpv6CidrBlocks;
const { VPCIpv6CidrBlocks } = require('@aws-cdk/aws-ec2');
import { VPCIpv6CidrBlocks } from '@aws-cdk/aws-ec2';
Extends: Parameters: - valueOrFunction (any or
undefined) – What this token will evaluate to, literal or function. - displayName (string or
undefined) – A human-readable display hint for this Token
-
concat([left[, right]]) → @aws-cdk/cdk.Token¶ Inherited from
@aws-cdk/cdk.TokenReturn a concated version of this Token in a string context The default implementation of this combines strings, but specialized implements of Token can return a more appropriate value.
Parameters: - left (any or
undefined) – - right (any or
undefined) –
Return type: - left (any or
-
resolve() → any¶ Inherited from
@aws-cdk/cdk.TokenReturns: The resolved value for this token. Return type: any or undefined
-
toJSON() → any¶ Inherited from
@aws-cdk/cdk.TokenTurn this Token into JSON This gets called by JSON.stringify(). We want to prohibit this, because it’s not possible to do this properly, so we just throw an error here.
Return type: any or undefined
-
toString() → string¶ Inherited from
@aws-cdk/cdk.TokenReturn a reversible string representation of this token If the Token is initialized with a literal, the stringified value of the literal is returned. Otherwise, a special quoted string representation of the Token is returned that can be embedded into other strings. Strings with quoted Tokens in them can be restored back into complex values with the Tokens restored by calling resolve() on the string.
Return type: string
-
displayName¶ Inherited from
@aws-cdk/cdk.TokenA human-readable display hint for this Token
Type: string or undefined(readonly)
-
valueOrFunction¶ Inherited from
@aws-cdk/cdk.TokenWhat this token will evaluate to, literal or function.
Type: any or undefined(readonly)
- valueOrFunction (any or
VpcNetwork¶
-
class
@aws-cdk/aws-ec2.VpcNetwork(parent, name[, props])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcNetwork;
const { VpcNetwork } = require('@aws-cdk/aws-ec2');
import { VpcNetwork } from '@aws-cdk/aws-ec2';
VpcNetwork deploys an AWS VPC, with public and private subnets per Availability Zone. For example: import { VpcNetwork } from ‘@aws-cdk/aws-ec2’ const vpc = new VpcNetwork(this, { cidr: “10.0.0.0/16” }) // Iterate the public subnets for (let subnet of vpc.publicSubnets) { } // Iterate the private subnets for (let subnet of vpc.privateSubnets) { }
Extends: Implements: Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcNetworkPropsorundefined) –
-
DEFAULT_CIDR_RANGE¶ The default CIDR range used when creating VPCs. This can be overridden using VpcNetworkProps when creating a VPCNetwork resource. e.g. new VpcResource(this, { cidr: ‘192.168.0.0./16’ })
Type: string (readonly) (static)
-
DEFAULT_SUBNETS¶ The default subnet configuration 1 Public and 1 Private subnet per AZ evenly split
Type: SubnetConfiguration[] (readonly) (static)
-
availabilityZones¶ Implements
@aws-cdk/aws-ec2.VpcNetworkRef.availabilityZones()AZs for this VPC
Type: string[] (readonly)
-
cidr¶ Type: string (readonly)
-
isolatedSubnets¶ Implements
@aws-cdk/aws-ec2.VpcNetworkRef.isolatedSubnets()List of isolated subnets in this VPC
Type: VpcSubnetRef[] (readonly)
-
privateSubnets¶ Implements
@aws-cdk/aws-ec2.VpcNetworkRef.privateSubnets()List of private subnets in this VPC
Type: VpcSubnetRef[] (readonly)
-
publicSubnets¶ Implements
@aws-cdk/aws-ec2.VpcNetworkRef.publicSubnets()List of public subnets in this VPC
Type: VpcSubnetRef[] (readonly)
Implements
@aws-cdk/cdk.ITaggable.tags()Manage tags for this construct and children
Type: @aws-cdk/cdk.TagManager(readonly)
-
vpcId¶ Implements
@aws-cdk/aws-ec2.VpcNetworkRef.vpcId()Identifier for this VPC
Type: string (readonly)
-
export() → @aws-cdk/aws-ec2.VpcNetworkRefProps¶ Inherited from
@aws-cdk/aws-ec2.VpcNetworkRefExport this VPC from the stack
Return type: VpcNetworkRefProps
-
isPublicSubnet(subnet) → boolean¶ Inherited from
@aws-cdk/aws-ec2.VpcNetworkRefReturn whether the given subnet is one of this VPC’s public subnets. The subnet must literally be one of the subnet object obtained from this VPC. A subnet that merely represents the same subnet will never return true.
Parameters: subnet ( VpcSubnetRef) –Return type: boolean
-
subnets([placement]) → @aws-cdk/aws-ec2.VpcSubnetRef[]¶ Inherited from
@aws-cdk/aws-ec2.VpcNetworkRefReturn the subnets appropriate for the placement strategy
Parameters: placement ( VpcPlacementStrategyorundefined) –Return type: VpcSubnetRef[]
-
dependencyElements¶ Inherited from
@aws-cdk/aws-ec2.VpcNetworkRefParts of the VPC that constitute full construction
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcNetworkProps (interface)¶
-
class
@aws-cdk/aws-ec2.VpcNetworkProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcNetworkProps;
// VpcNetworkProps is an interfaceimport { VpcNetworkProps } from '@aws-cdk/aws-ec2';
VpcNetworkProps allows you to specify configuration options for a VPC
-
cidr¶ The CIDR range to use for the VPC (e.g. ‘10.0.0.0/16’). Should be a minimum of /28 and maximum size of /16. The range will be split evenly into two subnets per Availability Zone (one public, one private).
Type: string or undefined(abstract)
-
defaultInstanceTenancy¶ The default tenancy of instances launched into the VPC. By default, instances will be launched with default (shared) tenancy. By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy.
Type: DefaultInstanceTenancyorundefined(abstract)
-
enableDnsHostnames¶ Indicates whether the instances launched in the VPC get public DNS hostnames. If this attribute is true, instances in the VPC get public DNS hostnames, but only if the enableDnsSupport attribute is also set to true.
Type: boolean or undefined(abstract)
-
enableDnsSupport¶ Indicates whether the DNS resolution is supported for the VPC. If this attribute is false, the Amazon-provided DNS server in the VPC that resolves public DNS hostnames to IP addresses is not enabled. If this attribute is true, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC IPv4 network range plus two will succeed.
Type: boolean or undefined(abstract)
-
maxAZs¶ Define the maximum number of AZs to use in this region If the region has more AZs than you want to use (for example, because of EIP limits), pick a lower number here. The AZs will be sorted and picked from the start of the list.
Type: number or undefined(abstract)
-
natGatewayPlacement¶ Configures the subnets which will have NAT Gateways You can pick a specific group of subnets by specifying the group name; the picked subnets must be public subnets.
Type: VpcPlacementStrategyorundefined(abstract)
-
natGateways¶ The number of NAT Gateways to create. For example, if set this to 1 and your subnet configuration is for 3 Public subnets then only one of the Public subnets will have a gateway and all Private subnets will route to this NAT Gateway.
Type: number or undefined(abstract)
-
subnetConfiguration¶ Configure the subnets to build for each AZ The subnets are constructed in the context of the VPC so you only need specify the configuration. The VPC details (VPC ID, specific CIDR, specific AZ will be calculated during creation) For example if you want 1 public subnet, 1 private subnet, and 1 isolated subnet in each AZ provide the following: subnetConfiguration: [ { cidrMask: 24, name: ‘ingress’, subnetType: SubnetType.Public, }, { cidrMask: 24, name: ‘application’, subnetType: SubnetType.Private, }, { cidrMask: 28, name: ‘rds’, subnetType: SubnetType.Isolated, } ] cidrMask is optional and if not provided the IP space in the VPC will be evenly divided between the requested subnets.
Type: SubnetConfiguration[] orundefined(abstract)
The AWS resource tags to associate with the VPC.
Type: string => string or undefined(abstract)
-
VpcNetworkRef¶
-
class
@aws-cdk/aws-ec2.VpcNetworkRef(parent, id)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcNetworkRef;
const { VpcNetworkRef } = require('@aws-cdk/aws-ec2');
import { VpcNetworkRef } from '@aws-cdk/aws-ec2';
A new or imported VPC
Extends: Implements: Abstract: Yes
Parameters: - parent (
@aws-cdk/cdk.Construct) – The parent construct - id (string) –
-
static
import(parent, name, props) → @aws-cdk/aws-ec2.VpcNetworkRef¶ Import an exported VPC
Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcNetworkRefProps) –
Return type: - parent (
-
export() → @aws-cdk/aws-ec2.VpcNetworkRefProps¶ Export this VPC from the stack
Return type: VpcNetworkRefProps
-
isPublicSubnet(subnet) → boolean¶ Return whether the given subnet is one of this VPC’s public subnets. The subnet must literally be one of the subnet object obtained from this VPC. A subnet that merely represents the same subnet will never return true.
Parameters: subnet ( VpcSubnetRef) –Return type: boolean
-
subnets([placement]) → @aws-cdk/aws-ec2.VpcSubnetRef[]¶ Return the subnets appropriate for the placement strategy
Parameters: placement ( VpcPlacementStrategyorundefined) –Return type: VpcSubnetRef[]
-
availabilityZones¶ AZs for this VPC
Type: string[] (readonly) (abstract)
-
dependencyElements¶ Implements
@aws-cdk/cdk.IDependable.dependencyElements()Parts of the VPC that constitute full construction
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
isolatedSubnets¶ List of isolated subnets in this VPC
Type: VpcSubnetRef[] (readonly) (abstract)
-
privateSubnets¶ List of private subnets in this VPC
Type: VpcSubnetRef[] (readonly) (abstract)
-
publicSubnets¶ List of public subnets in this VPC
Type: VpcSubnetRef[] (readonly) (abstract)
-
vpcId¶ Identifier for this VPC
Type: string (readonly) (abstract)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcNetworkRefProps (interface)¶
-
class
@aws-cdk/aws-ec2.VpcNetworkRefProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcNetworkRefProps;
// VpcNetworkRefProps is an interfaceimport { VpcNetworkRefProps } from '@aws-cdk/aws-ec2';
Properties that reference an external VpcNetwork
-
availabilityZones¶ List of availability zones for the subnets in this VPC.
Type: string[] (abstract)
-
vpcId¶ VPC’s identifier
Type: string (abstract)
-
isolatedSubnetIds¶ List of isolated subnet IDs Must be undefined or match the availability zones in length and order.
Type: string[] or undefined(abstract)
-
isolatedSubnetNames¶ List of names for the isolated subnets Must be undefined or have a name for every isolated subnet group.
Type: string[] or undefined(abstract)
-
privateSubnetIds¶ List of private subnet IDs Must be undefined or match the availability zones in length and order.
Type: string[] or undefined(abstract)
-
privateSubnetNames¶ List of names for the private subnets Must be undefined or have a name for every private subnet group.
Type: string[] or undefined(abstract)
-
publicSubnetIds¶ List of public subnet IDs Must be undefined or match the availability zones in length and order.
Type: string[] or undefined(abstract)
-
publicSubnetNames¶ List of names for the public subnets Must be undefined or have a name for every public subnet group.
Type: string[] or undefined(abstract)
-
VpcPlacementStrategy (interface)¶
-
class
@aws-cdk/aws-ec2.VpcPlacementStrategy¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcPlacementStrategy;
// VpcPlacementStrategy is an interfaceimport { VpcPlacementStrategy } from '@aws-cdk/aws-ec2';
Customize how instances are placed inside a VPC Constructs that allow customization of VPC placement use parameters of this type to provide placement settings. By default, the instances are placed in the private subnets.
-
subnetName¶ Place the instances in the subnets with the given name (This is the name supplied in subnetConfiguration). At most one of subnetsToUse and subnetName can be supplied.
Type: string or undefined(abstract)
-
subnetsToUse¶ Place the instances in the subnets of the given type At most one of subnetsToUse and subnetName can be supplied.
Type: SubnetTypeorundefined(abstract)
-
VpcPrivateSubnet¶
-
class
@aws-cdk/aws-ec2.VpcPrivateSubnet(parent, name, props)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcPrivateSubnet;
const { VpcPrivateSubnet } = require('@aws-cdk/aws-ec2');
import { VpcPrivateSubnet } from '@aws-cdk/aws-ec2';
Represents a private VPC subnet resource
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcSubnetProps) –
-
addDefaultNatRouteEntry(natGatewayId)¶ Adds an entry to this subnets route table that points to the passed NATGatwayId
Parameters: natGatewayId (string) –
-
addDefaultRouteToIGW(gatewayId)¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetProtected method
Parameters: gatewayId (string) –
-
addDefaultRouteToNAT(natGatewayId)¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetProtected method
Parameters: natGatewayId (string) –
-
availabilityZone¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetThe Availability Zone the subnet is located in
Type: string (readonly)
-
subnetId¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetThe subnetId for this particular subnet
Type: string (readonly)
Inherited from
@aws-cdk/aws-ec2.VpcSubnetManage tags for Construct and propagate to children
Type: @aws-cdk/cdk.TagManager(readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetRefParts of this VPC subnet
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcPublicSubnet¶
-
class
@aws-cdk/aws-ec2.VpcPublicSubnet(parent, name, props)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcPublicSubnet;
const { VpcPublicSubnet } = require('@aws-cdk/aws-ec2');
import { VpcPublicSubnet } from '@aws-cdk/aws-ec2';
Represents a public VPC subnet resource
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcSubnetProps) –
-
addDefaultIGWRouteEntry(gatewayId)¶ Create a default route that points to a passed IGW
Parameters: gatewayId (string) –
-
addNatGateway() → string¶ Creates a new managed NAT gateway attached to this public subnet. Also adds the EIP for the managed NAT.
Returns: A ref to the the NAT Gateway ID Return type: string
-
addDefaultRouteToIGW(gatewayId)¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetProtected method
Parameters: gatewayId (string) –
-
addDefaultRouteToNAT(natGatewayId)¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetProtected method
Parameters: natGatewayId (string) –
-
availabilityZone¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetThe Availability Zone the subnet is located in
Type: string (readonly)
-
subnetId¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetThe subnetId for this particular subnet
Type: string (readonly)
Inherited from
@aws-cdk/aws-ec2.VpcSubnetManage tags for Construct and propagate to children
Type: @aws-cdk/cdk.TagManager(readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetRefParts of this VPC subnet
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcSubnet¶
-
class
@aws-cdk/aws-ec2.VpcSubnet(parent, name, props)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcSubnet;
const { VpcSubnet } = require('@aws-cdk/aws-ec2');
import { VpcSubnet } from '@aws-cdk/aws-ec2';
Represents a new VPC subnet resource
Extends: Implements: Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcSubnetProps) –
-
addDefaultRouteToIGW(gatewayId)¶ Protected method
Parameters: gatewayId (string) –
-
addDefaultRouteToNAT(natGatewayId)¶ Protected method
Parameters: natGatewayId (string) –
-
availabilityZone¶ Implements
@aws-cdk/aws-ec2.VpcSubnetRef.availabilityZone()The Availability Zone the subnet is located in
Type: string (readonly)
-
subnetId¶ Implements
@aws-cdk/aws-ec2.VpcSubnetRef.subnetId()The subnetId for this particular subnet
Type: string (readonly)
Implements
@aws-cdk/cdk.ITaggable.tags()Manage tags for Construct and propagate to children
Type: @aws-cdk/cdk.TagManager(readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/aws-ec2.VpcSubnetRefParts of this VPC subnet
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcSubnetProps (interface)¶
-
class
@aws-cdk/aws-ec2.VpcSubnetProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcSubnetProps;
// VpcSubnetProps is an interfaceimport { VpcSubnetProps } from '@aws-cdk/aws-ec2';
Specify configuration parameters for a VPC subnet
-
availabilityZone¶ The availability zone for the subnet
Type: string (abstract)
-
cidrBlock¶ The CIDR notation for this subnet
Type: string (abstract)
-
vpcId¶ The VPC which this subnet is part of
Type: string (abstract)
-
mapPublicIpOnLaunch¶ Controls if a public IP is associated to an instance at launch Defaults to true in Subnet.Public, false in Subnet.Private or Subnet.Isolated.
Type: boolean or undefined(abstract)
The AWS resource tags to associate with the Subnet
Type: string => string or undefined(abstract)
-
VpcSubnetRef¶
-
class
@aws-cdk/aws-ec2.VpcSubnetRef(parent, id)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcSubnetRef;
const { VpcSubnetRef } = require('@aws-cdk/aws-ec2');
import { VpcSubnetRef } from '@aws-cdk/aws-ec2';
A new or imported VPC Subnet
Extends: Implements: Abstract: Yes
Parameters: - parent (
@aws-cdk/cdk.Construct) – The parent construct - id (string) –
-
static
import(parent, name, props) → @aws-cdk/aws-ec2.VpcSubnetRef¶ Parameters: - parent (
@aws-cdk/cdk.Construct) – - name (string) –
- props (
VpcSubnetRefProps) –
Return type: - parent (
-
availabilityZone¶ The Availability Zone the subnet is located in
Type: string (readonly) (abstract)
-
dependencyElements¶ Implements
@aws-cdk/cdk.IDependable.dependencyElements()Parts of this VPC subnet
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
subnetId¶ The subnetId for this particular subnet
Type: string (readonly) (abstract)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
- parent (
VpcSubnetRefProps (interface)¶
-
class
@aws-cdk/aws-ec2.VpcSubnetRefProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.VpcSubnetRefProps;
// VpcSubnetRefProps is an interfaceimport { VpcSubnetRefProps } from '@aws-cdk/aws-ec2';
-
availabilityZone¶ The Availability Zone the subnet is located in
Type: string (abstract)
-
subnetId¶ The subnetId for this particular subnet
Type: string (abstract)
-
WindowsImage¶
-
class
@aws-cdk/aws-ec2.WindowsImage(version)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.WindowsImage;
const { WindowsImage } = require('@aws-cdk/aws-ec2');
import { WindowsImage } from '@aws-cdk/aws-ec2';
Select the latest version of the indicated Windows version The AMI ID is selected using the values published to the SSM parameter store. https://aws.amazon.com/blogs/mt/query-for-the-latest-windows-ami-using-systems-manager-parameter-store/
Implements: IMachineImageSourceParameters: version ( WindowsVersion) –-
getImage(parent) → @aws-cdk/aws-ec2.MachineImage¶ Implements
@aws-cdk/aws-ec2.IMachineImageSource.getImage()Return the image to use in the given context
Parameters: parent ( @aws-cdk/cdk.Construct) –Return type: MachineImage
-
version¶ Type: WindowsVersion(readonly)
-
WindowsOS¶
-
class
@aws-cdk/aws-ec2.WindowsOS¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.WindowsOS;
const { WindowsOS } = require('@aws-cdk/aws-ec2');
import { WindowsOS } from '@aws-cdk/aws-ec2';
OS features specialized for Windows
Extends: OperatingSystem-
createUserData(scripts) → string¶ Implements
@aws-cdk/aws-ec2.OperatingSystem.createUserData()Parameters: scripts (string[]) – Return type: string
-
type¶ Implements
@aws-cdk/aws-ec2.OperatingSystem.type()Type: OperatingSystemType(readonly)
-
WindowsVersion (enum)¶
-
class
@aws-cdk/aws-ec2.WindowsVersion¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.WindowsVersion;
const { WindowsVersion } = require('@aws-cdk/aws-ec2');
import { WindowsVersion } from '@aws-cdk/aws-ec2';
The Windows version to use for the WindowsImage
-
WindowsServer2016TurksihFullBase¶
-
WindowsServer2016SwedishFullBase¶
-
WindowsServer2016SpanishFullBase¶
-
WindowsServer2016RussianFullBase¶
-
WindowsServer2016PortuguesePortugalFullBase¶
-
WindowsServer2016PortugueseBrazilFullBase¶
-
WindowsServer2016PolishFullBase¶
-
WindowsServer2016KoreanFullSQL2016Base¶
-
WindowsServer2016KoreanFullBase¶
-
WindowsServer2016JapaneseFullSQL2016Web¶
-
WindowsServer2016JapaneseFullSQL2016Standard¶
-
WindowsServer2016JapaneseFullSQL2016Express¶
-
WindowsServer2016JapaneseFullSQL2016Enterprise¶
-
WindowsServer2016JapaneseFullBase¶
-
WindowsServer2016ItalianFullBase¶
-
WindowsServer2016HungarianFullBase¶
-
WindowsServer2016GermanFullBase¶
-
WindowsServer2016FrenchFullBase¶
-
WindowsServer2016EnglishNanoBase¶
-
WindowsServer2016EnglishFullSQL2017Web¶
-
WindowsServer2016EnglishFullSQL2017Standard¶
-
WindowsServer2016EnglishFullSQL2017Express¶
-
WindowsServer2016EnglishFullSQL2017Enterprise¶
-
cloudformation¶
CustomerGatewayResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.CustomerGatewayResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.CustomerGatewayResource;
const { cloudformation.CustomerGatewayResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.CustomerGatewayResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisCustomerGatewayResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
CustomerGatewayResourceProps) – the properties of thisCustomerGatewayResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
customerGatewayName¶ Type: string (readonly)
-
propertyOverrides¶ Type: CustomerGatewayResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
CustomerGatewayResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.CustomerGatewayResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.CustomerGatewayResourceProps;
// cloudformation.CustomerGatewayResourceProps is an interfaceimport { cloudformation.CustomerGatewayResourceProps } from '@aws-cdk/aws-ec2';
-
bgpAsn¶ AWS::EC2::CustomerGateway.BgpAsnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-bgpasnType: number or @aws-cdk/cdk.Token(abstract)
-
ipAddress¶ AWS::EC2::CustomerGateway.IpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-ipaddressType: string or @aws-cdk/cdk.Token(abstract)
-
type¶ AWS::EC2::CustomerGateway.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-typeType: string or @aws-cdk/cdk.Token(abstract)
AWS::EC2::CustomerGateway.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customer-gateway.html#cfn-ec2-customergateway-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
DHCPOptionsResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.DHCPOptionsResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.DHCPOptionsResource;
const { cloudformation.DHCPOptionsResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.DHCPOptionsResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisDHCPOptionsResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
DHCPOptionsResourcePropsorundefined) – the properties of thisDHCPOptionsResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
dhcpOptionsName¶ Type: string (readonly)
-
propertyOverrides¶ Type: DHCPOptionsResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
DHCPOptionsResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.DHCPOptionsResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.DHCPOptionsResourceProps;
// cloudformation.DHCPOptionsResourceProps is an interfaceimport { cloudformation.DHCPOptionsResourceProps } from '@aws-cdk/aws-ec2';
-
domainName¶ AWS::EC2::DHCPOptions.DomainNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
domainNameServers¶ AWS::EC2::DHCPOptions.DomainNameServershttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-domainnameserversType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
netbiosNameServers¶ AWS::EC2::DHCPOptions.NetbiosNameServershttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnameserversType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
netbiosNodeType¶ AWS::EC2::DHCPOptions.NetbiosNodeTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-netbiosnodetypeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ntpServers¶ AWS::EC2::DHCPOptions.NtpServershttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-ntpserversType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
AWS::EC2::DHCPOptions.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-dhcp-options.html#cfn-ec2-dhcpoptions-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
EIPAssociationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.EIPAssociationResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EIPAssociationResource;
const { cloudformation.EIPAssociationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.EIPAssociationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisEIPAssociationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
EIPAssociationResourcePropsorundefined) – the properties of thisEIPAssociationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
eipAssociationName¶ Type: string (readonly)
-
propertyOverrides¶ Type: EIPAssociationResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
EIPAssociationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.EIPAssociationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EIPAssociationResourceProps;
// cloudformation.EIPAssociationResourceProps is an interfaceimport { cloudformation.EIPAssociationResourceProps } from '@aws-cdk/aws-ec2';
-
allocationId¶ AWS::EC2::EIPAssociation.AllocationIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-allocationidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
eip¶ AWS::EC2::EIPAssociation.EIPhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-eipType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceId¶ AWS::EC2::EIPAssociation.InstanceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-instanceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
networkInterfaceId¶ AWS::EC2::EIPAssociation.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-networkinterfaceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddress¶ AWS::EC2::EIPAssociation.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip-association.html#cfn-ec2-eipassociation-PrivateIpAddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
EIPResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.EIPResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EIPResource;
const { cloudformation.EIPResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.EIPResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisEIPResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
EIPResourcePropsorundefined) – the properties of thisEIPResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
eipAllocationId¶ Type: string (readonly)
-
eipIp¶ Type: string (readonly)
-
propertyOverrides¶ Type: EIPResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
EIPResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.EIPResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EIPResourceProps;
// cloudformation.EIPResourceProps is an interfaceimport { cloudformation.EIPResourceProps } from '@aws-cdk/aws-ec2';
-
domain¶ AWS::EC2::EIP.Domainhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-domainType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceId¶ AWS::EC2::EIP.InstanceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-eip.html#cfn-ec2-eip-instanceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
EgressOnlyInternetGatewayResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.EgressOnlyInternetGatewayResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EgressOnlyInternetGatewayResource;
const { cloudformation.EgressOnlyInternetGatewayResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.EgressOnlyInternetGatewayResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisEgressOnlyInternetGatewayResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
EgressOnlyInternetGatewayResourceProps) – the properties of thisEgressOnlyInternetGatewayResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
egressOnlyInternetGatewayId¶ Type: string (readonly)
-
propertyOverrides¶ Type: EgressOnlyInternetGatewayResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
EgressOnlyInternetGatewayResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.EgressOnlyInternetGatewayResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.EgressOnlyInternetGatewayResourceProps;
// cloudformation.EgressOnlyInternetGatewayResourceProps is an interfaceimport { cloudformation.EgressOnlyInternetGatewayResourceProps } from '@aws-cdk/aws-ec2';
-
vpcId¶ AWS::EC2::EgressOnlyInternetGateway.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-egressonlyinternetgateway.html#cfn-ec2-egressonlyinternetgateway-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
FlowLogResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.FlowLogResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.FlowLogResource;
const { cloudformation.FlowLogResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.FlowLogResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisFlowLogResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
FlowLogResourceProps) – the properties of thisFlowLogResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
flowLogId¶ Type: string (readonly)
-
propertyOverrides¶ Type: FlowLogResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
FlowLogResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.FlowLogResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.FlowLogResourceProps;
// cloudformation.FlowLogResourceProps is an interfaceimport { cloudformation.FlowLogResourceProps } from '@aws-cdk/aws-ec2';
-
resourceId¶ AWS::EC2::FlowLog.ResourceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourceidType: string or @aws-cdk/cdk.Token(abstract)
-
resourceType¶ AWS::EC2::FlowLog.ResourceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-resourcetypeType: string or @aws-cdk/cdk.Token(abstract)
-
trafficType¶ AWS::EC2::FlowLog.TrafficTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-traffictypeType: string or @aws-cdk/cdk.Token(abstract)
-
deliverLogsPermissionArn¶ AWS::EC2::FlowLog.DeliverLogsPermissionArnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-deliverlogspermissionarnType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
logDestination¶ AWS::EC2::FlowLog.LogDestinationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestinationType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
logDestinationType¶ AWS::EC2::FlowLog.LogDestinationTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-logdestinationtypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
logGroupName¶ AWS::EC2::FlowLog.LogGroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-flowlog.html#cfn-ec2-flowlog-loggroupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
HostResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.HostResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.HostResource;
const { cloudformation.HostResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.HostResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisHostResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
HostResourceProps) – the properties of thisHostResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
hostId¶ Type: string (readonly)
-
propertyOverrides¶ Type: HostResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
HostResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.HostResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.HostResourceProps;
// cloudformation.HostResourceProps is an interfaceimport { cloudformation.HostResourceProps } from '@aws-cdk/aws-ec2';
-
availabilityZone¶ AWS::EC2::Host.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-availabilityzoneType: string or @aws-cdk/cdk.Token(abstract)
-
instanceType¶ AWS::EC2::Host.InstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancetypeType: string or @aws-cdk/cdk.Token(abstract)
-
autoPlacement¶ AWS::EC2::Host.AutoPlacementhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacementType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
InstanceResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.InstanceResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource;
const { cloudformation.InstanceResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.InstanceResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisInstanceResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
InstanceResourcePropsorundefined) – the properties of thisInstanceResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
instanceAvailabilityZone¶ Type: string (readonly)
-
instanceId¶ Type: string (readonly)
-
instancePrivateDnsName¶ Type: string (readonly)
-
instancePrivateIp¶ Type: string (readonly)
-
instancePublicDnsName¶ Type: string (readonly)
-
instancePublicIp¶ Type: string (readonly)
-
propertyOverrides¶ Type: InstanceResourceProps(readonly)
-
class
AssociationParameterProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.AssociationParameterProperty;
// cloudformation.InstanceResource.AssociationParameterProperty is an interfaceimport { cloudformation.InstanceResource.AssociationParameterProperty } from '@aws-cdk/aws-ec2';
-
key¶ InstanceResource.AssociationParameterProperty.Keyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html#cfn-ec2-instance-ssmassociations-associationparameters-keyType: string or @aws-cdk/cdk.Token(abstract)
-
value¶ InstanceResource.AssociationParameterProperty.Valuehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations-associationparameters.html#cfn-ec2-instance-ssmassociations-associationparameters-valueType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] (abstract)
-
-
class
BlockDeviceMappingProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.BlockDeviceMappingProperty;
// cloudformation.InstanceResource.BlockDeviceMappingProperty is an interfaceimport { cloudformation.InstanceResource.BlockDeviceMappingProperty } from '@aws-cdk/aws-ec2';
-
deviceName¶ InstanceResource.BlockDeviceMappingProperty.DeviceNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-devicenameType: string or @aws-cdk/cdk.Token(abstract)
-
ebs¶ InstanceResource.BlockDeviceMappingProperty.Ebshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-ebsType: @aws-cdk/cdk.TokenorEbsPropertyorundefined(abstract)
-
noDevice¶ InstanceResource.BlockDeviceMappingProperty.NoDevicehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-nodeviceType: @aws-cdk/cdk.TokenorNoDevicePropertyorundefined(abstract)
-
virtualName¶ InstanceResource.BlockDeviceMappingProperty.VirtualNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-mapping.html#cfn-ec2-blockdev-mapping-virtualnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
CreditSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.CreditSpecificationProperty;
// cloudformation.InstanceResource.CreditSpecificationProperty is an interfaceimport { cloudformation.InstanceResource.CreditSpecificationProperty } from '@aws-cdk/aws-ec2';
-
cpuCredits¶ InstanceResource.CreditSpecificationProperty.CPUCreditshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-creditspecification.html#cfn-ec2-instance-creditspecification-cpucreditsType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
EbsProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.EbsProperty;
// cloudformation.InstanceResource.EbsProperty is an interfaceimport { cloudformation.InstanceResource.EbsProperty } from '@aws-cdk/aws-ec2';
-
deleteOnTermination¶ InstanceResource.EbsProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-deleteonterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
encrypted¶ InstanceResource.EbsProperty.Encryptedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-encryptedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iops¶ InstanceResource.EbsProperty.Iopshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-iopsType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
snapshotId¶ InstanceResource.EbsProperty.SnapshotIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-snapshotidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeSize¶ InstanceResource.EbsProperty.VolumeSizehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumesizeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeType¶ InstanceResource.EbsProperty.VolumeTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-blockdev-template.html#cfn-ec2-blockdev-template-volumetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
ElasticGpuSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.ElasticGpuSpecificationProperty;
// cloudformation.InstanceResource.ElasticGpuSpecificationProperty is an interfaceimport { cloudformation.InstanceResource.ElasticGpuSpecificationProperty } from '@aws-cdk/aws-ec2';
-
type¶ InstanceResource.ElasticGpuSpecificationProperty.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-elasticgpuspecification.html#cfn-ec2-instance-elasticgpuspecification-typeType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
InstanceIpv6AddressProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.InstanceIpv6AddressProperty;
// cloudformation.InstanceResource.InstanceIpv6AddressProperty is an interfaceimport { cloudformation.InstanceResource.InstanceIpv6AddressProperty } from '@aws-cdk/aws-ec2';
-
ipv6Address¶ InstanceResource.InstanceIpv6AddressProperty.Ipv6Addresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-instanceipv6address.html#cfn-ec2-instance-instanceipv6address-ipv6addressType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
LaunchTemplateSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.LaunchTemplateSpecificationProperty;
// cloudformation.InstanceResource.LaunchTemplateSpecificationProperty is an interfaceimport { cloudformation.InstanceResource.LaunchTemplateSpecificationProperty } from '@aws-cdk/aws-ec2';
-
version¶ InstanceResource.LaunchTemplateSpecificationProperty.Versionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-versionType: string or @aws-cdk/cdk.Token(abstract)
-
launchTemplateId¶ InstanceResource.LaunchTemplateSpecificationProperty.LaunchTemplateIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-launchtemplateidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
launchTemplateName¶ InstanceResource.LaunchTemplateSpecificationProperty.LaunchTemplateNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-launchtemplatespecification.html#cfn-ec2-instance-launchtemplatespecification-launchtemplatenameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
NetworkInterfaceProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.NetworkInterfaceProperty;
// cloudformation.InstanceResource.NetworkInterfaceProperty is an interfaceimport { cloudformation.InstanceResource.NetworkInterfaceProperty } from '@aws-cdk/aws-ec2';
-
deviceIndex¶ InstanceResource.NetworkInterfaceProperty.DeviceIndexhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-deviceindexType: string or @aws-cdk/cdk.Token(abstract)
-
associatePublicIpAddress¶ InstanceResource.NetworkInterfaceProperty.AssociatePublicIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-associatepubipType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
deleteOnTermination¶ InstanceResource.NetworkInterfaceProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-deleteType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ InstanceResource.NetworkInterfaceProperty.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupSet¶ InstanceResource.NetworkInterfaceProperty.GroupSethttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-groupsetType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
ipv6AddressCount¶ InstanceResource.NetworkInterfaceProperty.Ipv6AddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#cfn-ec2-instance-networkinterface-ipv6addresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6Addresses¶ InstanceResource.NetworkInterfaceProperty.Ipv6Addresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#cfn-ec2-instance-networkinterface-ipv6addressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorInstanceIpv6AddressProperty)[] orundefined(abstract)
-
networkInterfaceId¶ InstanceResource.NetworkInterfaceProperty.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-network-ifaceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddress¶ InstanceResource.NetworkInterfaceProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-privateipaddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddresses¶ InstanceResource.NetworkInterfaceProperty.PrivateIpAddresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-privateipaddressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorPrivateIpAddressSpecificationProperty)[] orundefined(abstract)
-
secondaryPrivateIpAddressCount¶ InstanceResource.NetworkInterfaceProperty.SecondaryPrivateIpAddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-secondprivateipType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
subnetId¶ InstanceResource.NetworkInterfaceProperty.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-iface-embedded.html#aws-properties-ec2-network-iface-embedded-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
NoDeviceProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.NoDeviceProperty;
// cloudformation.InstanceResource.NoDeviceProperty is an interfaceimport { cloudformation.InstanceResource.NoDeviceProperty } from '@aws-cdk/aws-ec2';
-
class
PrivateIpAddressSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.PrivateIpAddressSpecificationProperty;
// cloudformation.InstanceResource.PrivateIpAddressSpecificationProperty is an interfaceimport { cloudformation.InstanceResource.PrivateIpAddressSpecificationProperty } from '@aws-cdk/aws-ec2';
-
primary¶ InstanceResource.PrivateIpAddressSpecificationProperty.Primaryhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-primaryType: boolean or @aws-cdk/cdk.Token(abstract)
-
privateIpAddress¶ InstanceResource.PrivateIpAddressSpecificationProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddressType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
SsmAssociationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.SsmAssociationProperty;
// cloudformation.InstanceResource.SsmAssociationProperty is an interfaceimport { cloudformation.InstanceResource.SsmAssociationProperty } from '@aws-cdk/aws-ec2';
-
documentName¶ InstanceResource.SsmAssociationProperty.DocumentNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html#cfn-ec2-instance-ssmassociations-documentnameType: string or @aws-cdk/cdk.Token(abstract)
-
associationParameters¶ InstanceResource.SsmAssociationProperty.AssociationParametershttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-ssmassociations.html#cfn-ec2-instance-ssmassociations-associationparametersType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorAssociationParameterProperty)[] orundefined(abstract)
-
-
class
VolumeProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResource.VolumeProperty;
// cloudformation.InstanceResource.VolumeProperty is an interfaceimport { cloudformation.InstanceResource.VolumeProperty } from '@aws-cdk/aws-ec2';
-
device¶ InstanceResource.VolumeProperty.Devicehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html#cfn-ec2-mountpoint-deviceType: string or @aws-cdk/cdk.Token(abstract)
-
volumeId¶ InstanceResource.VolumeProperty.VolumeIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-mount-point.html#cfn-ec2-mountpoint-volumeidType: string or @aws-cdk/cdk.Token(abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
InstanceResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.InstanceResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InstanceResourceProps;
// cloudformation.InstanceResourceProps is an interfaceimport { cloudformation.InstanceResourceProps } from '@aws-cdk/aws-ec2';
-
additionalInfo¶ AWS::EC2::Instance.AdditionalInfohttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-additionalinfoType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
affinity¶ AWS::EC2::Instance.Affinityhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-affinityType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
availabilityZone¶ AWS::EC2::Instance.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-availabilityzoneType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
blockDeviceMappings¶ AWS::EC2::Instance.BlockDeviceMappingshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-blockdevicemappingsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorBlockDeviceMappingProperty)[] orundefined(abstract)
-
creditSpecification¶ AWS::EC2::Instance.CreditSpecificationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-creditspecificationType: @aws-cdk/cdk.TokenorCreditSpecificationPropertyorundefined(abstract)
-
disableApiTermination¶ AWS::EC2::Instance.DisableApiTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-disableapiterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ebsOptimized¶ AWS::EC2::Instance.EbsOptimizedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ebsoptimizedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
elasticGpuSpecifications¶ AWS::EC2::Instance.ElasticGpuSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-elasticgpuspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorElasticGpuSpecificationProperty)[] orundefined(abstract)
-
hostId¶ AWS::EC2::Instance.HostIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hostidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iamInstanceProfile¶ AWS::EC2::Instance.IamInstanceProfilehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-iaminstanceprofileType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
imageId¶ AWS::EC2::Instance.ImageIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-imageidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceInitiatedShutdownBehavior¶ AWS::EC2::Instance.InstanceInitiatedShutdownBehaviorhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instanceinitiatedshutdownbehaviorType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceType¶ AWS::EC2::Instance.InstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instancetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6AddressCount¶ AWS::EC2::Instance.Ipv6AddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ipv6addresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6Addresses¶ AWS::EC2::Instance.Ipv6Addresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ipv6addressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorInstanceIpv6AddressProperty)[] orundefined(abstract)
-
kernelId¶ AWS::EC2::Instance.KernelIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-kernelidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
keyName¶ AWS::EC2::Instance.KeyNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-keynameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
launchTemplate¶ AWS::EC2::Instance.LaunchTemplatehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-launchtemplateType: @aws-cdk/cdk.TokenorLaunchTemplateSpecificationPropertyorundefined(abstract)
-
monitoring¶ AWS::EC2::Instance.Monitoringhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-monitoringType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
networkInterfaces¶ AWS::EC2::Instance.NetworkInterfaceshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-networkinterfacesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorNetworkInterfaceProperty)[] orundefined(abstract)
-
placementGroupName¶ AWS::EC2::Instance.PlacementGroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-placementgroupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddress¶ AWS::EC2::Instance.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-privateipaddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ramdiskId¶ AWS::EC2::Instance.RamdiskIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ramdiskidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
securityGroupIds¶ AWS::EC2::Instance.SecurityGroupIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-securitygroupidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
securityGroups¶ AWS::EC2::Instance.SecurityGroupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-securitygroupsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
sourceDestCheck¶ AWS::EC2::Instance.SourceDestCheckhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-sourcedestcheckType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ssmAssociations¶ AWS::EC2::Instance.SsmAssociationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ssmassociationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorSsmAssociationProperty)[] orundefined(abstract)
-
subnetId¶ AWS::EC2::Instance.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::Instance.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
tenancy¶ AWS::EC2::Instance.Tenancyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tenancyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
userData¶ AWS::EC2::Instance.UserDatahttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-userdataType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumes¶ AWS::EC2::Instance.Volumeshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-volumesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorVolumeProperty)[] orundefined(abstract)
-
InternetGatewayResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.InternetGatewayResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InternetGatewayResource;
const { cloudformation.InternetGatewayResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.InternetGatewayResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisInternetGatewayResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
InternetGatewayResourcePropsorundefined) – the properties of thisInternetGatewayResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
internetGatewayName¶ Type: string (readonly)
-
propertyOverrides¶ Type: InternetGatewayResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
InternetGatewayResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.InternetGatewayResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.InternetGatewayResourceProps;
// cloudformation.InternetGatewayResourceProps is an interfaceimport { cloudformation.InternetGatewayResourceProps } from '@aws-cdk/aws-ec2';
AWS::EC2::InternetGateway.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-internetgateway.html#cfn-ec2-internetgateway-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
LaunchTemplateResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.LaunchTemplateResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource;
const { cloudformation.LaunchTemplateResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.LaunchTemplateResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisLaunchTemplateResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
LaunchTemplateResourcePropsorundefined) – the properties of thisLaunchTemplateResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
launchTemplateDefaultVersionNumber¶ Type: string (readonly)
-
launchTemplateId¶ Type: string (readonly)
-
launchTemplateLatestVersionNumber¶ Type: string (readonly)
-
propertyOverrides¶ Type: LaunchTemplateResourceProps(readonly)
-
class
BlockDeviceMappingProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.BlockDeviceMappingProperty;
// cloudformation.LaunchTemplateResource.BlockDeviceMappingProperty is an interfaceimport { cloudformation.LaunchTemplateResource.BlockDeviceMappingProperty } from '@aws-cdk/aws-ec2';
-
deviceName¶ LaunchTemplateResource.BlockDeviceMappingProperty.DeviceNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicenameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ebs¶ LaunchTemplateResource.BlockDeviceMappingProperty.Ebshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-ebsType: @aws-cdk/cdk.TokenorEbsPropertyorundefined(abstract)
-
noDevice¶ LaunchTemplateResource.BlockDeviceMappingProperty.NoDevicehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodeviceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
virtualName¶ LaunchTemplateResource.BlockDeviceMappingProperty.VirtualNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
CreditSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.CreditSpecificationProperty;
// cloudformation.LaunchTemplateResource.CreditSpecificationProperty is an interfaceimport { cloudformation.LaunchTemplateResource.CreditSpecificationProperty } from '@aws-cdk/aws-ec2';
-
cpuCredits¶ LaunchTemplateResource.CreditSpecificationProperty.CpuCreditshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification-cpucreditsType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
EbsProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.EbsProperty;
// cloudformation.LaunchTemplateResource.EbsProperty is an interfaceimport { cloudformation.LaunchTemplateResource.EbsProperty } from '@aws-cdk/aws-ec2';
-
deleteOnTermination¶ LaunchTemplateResource.EbsProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-deleteonterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
encrypted¶ LaunchTemplateResource.EbsProperty.Encryptedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-encryptedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iops¶ LaunchTemplateResource.EbsProperty.Iopshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-iopsType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
kmsKeyId¶ LaunchTemplateResource.EbsProperty.KmsKeyIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-kmskeyidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
snapshotId¶ LaunchTemplateResource.EbsProperty.SnapshotIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-snapshotidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeSize¶ LaunchTemplateResource.EbsProperty.VolumeSizehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumesizeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeType¶ LaunchTemplateResource.EbsProperty.VolumeTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
ElasticGpuSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.ElasticGpuSpecificationProperty;
// cloudformation.LaunchTemplateResource.ElasticGpuSpecificationProperty is an interfaceimport { cloudformation.LaunchTemplateResource.ElasticGpuSpecificationProperty } from '@aws-cdk/aws-ec2';
-
type¶ LaunchTemplateResource.ElasticGpuSpecificationProperty.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-typeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
IamInstanceProfileProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.IamInstanceProfileProperty;
// cloudformation.LaunchTemplateResource.IamInstanceProfileProperty is an interfaceimport { cloudformation.LaunchTemplateResource.IamInstanceProfileProperty } from '@aws-cdk/aws-ec2';
-
arn¶ LaunchTemplateResource.IamInstanceProfileProperty.Arnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-arnType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
name¶ LaunchTemplateResource.IamInstanceProfileProperty.Namehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-nameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
InstanceMarketOptionsProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.InstanceMarketOptionsProperty;
// cloudformation.LaunchTemplateResource.InstanceMarketOptionsProperty is an interfaceimport { cloudformation.LaunchTemplateResource.InstanceMarketOptionsProperty } from '@aws-cdk/aws-ec2';
-
marketType¶ LaunchTemplateResource.InstanceMarketOptionsProperty.MarketTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-markettypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
spotOptions¶ LaunchTemplateResource.InstanceMarketOptionsProperty.SpotOptionshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptionsType: @aws-cdk/cdk.TokenorSpotOptionsPropertyorundefined(abstract)
-
-
class
Ipv6AddProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.Ipv6AddProperty;
// cloudformation.LaunchTemplateResource.Ipv6AddProperty is an interfaceimport { cloudformation.LaunchTemplateResource.Ipv6AddProperty } from '@aws-cdk/aws-ec2';
-
ipv6Address¶ LaunchTemplateResource.Ipv6AddProperty.Ipv6Addresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html#cfn-ec2-launchtemplate-ipv6add-ipv6addressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
LaunchTemplateDataProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.LaunchTemplateDataProperty;
// cloudformation.LaunchTemplateResource.LaunchTemplateDataProperty is an interfaceimport { cloudformation.LaunchTemplateResource.LaunchTemplateDataProperty } from '@aws-cdk/aws-ec2';
-
blockDeviceMappings¶ LaunchTemplateResource.LaunchTemplateDataProperty.BlockDeviceMappingshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-blockdevicemappingsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorBlockDeviceMappingProperty)[] orundefined(abstract)
-
creditSpecification¶ LaunchTemplateResource.LaunchTemplateDataProperty.CreditSpecificationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecificationType: @aws-cdk/cdk.TokenorCreditSpecificationPropertyorundefined(abstract)
-
disableApiTermination¶ LaunchTemplateResource.LaunchTemplateDataProperty.DisableApiTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-disableapiterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ebsOptimized¶ LaunchTemplateResource.LaunchTemplateDataProperty.EbsOptimizedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ebsoptimizedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
elasticGpuSpecifications¶ LaunchTemplateResource.LaunchTemplateDataProperty.ElasticGpuSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-elasticgpuspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorElasticGpuSpecificationProperty)[] orundefined(abstract)
-
iamInstanceProfile¶ LaunchTemplateResource.LaunchTemplateDataProperty.IamInstanceProfilehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofileType: @aws-cdk/cdk.TokenorIamInstanceProfilePropertyorundefined(abstract)
-
imageId¶ LaunchTemplateResource.LaunchTemplateDataProperty.ImageIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-imageidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceInitiatedShutdownBehavior¶ LaunchTemplateResource.LaunchTemplateDataProperty.InstanceInitiatedShutdownBehaviorhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instanceinitiatedshutdownbehaviorType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceMarketOptions¶ LaunchTemplateResource.LaunchTemplateDataProperty.InstanceMarketOptionshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptionsType: @aws-cdk/cdk.TokenorInstanceMarketOptionsPropertyorundefined(abstract)
-
instanceType¶ LaunchTemplateResource.LaunchTemplateDataProperty.InstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
kernelId¶ LaunchTemplateResource.LaunchTemplateDataProperty.KernelIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-kernelidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
keyName¶ LaunchTemplateResource.LaunchTemplateDataProperty.KeyNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-keynameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
monitoring¶ LaunchTemplateResource.LaunchTemplateDataProperty.Monitoringhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoringType: @aws-cdk/cdk.TokenorMonitoringPropertyorundefined(abstract)
-
networkInterfaces¶ LaunchTemplateResource.LaunchTemplateDataProperty.NetworkInterfaceshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-networkinterfacesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorNetworkInterfaceProperty)[] orundefined(abstract)
-
placement¶ LaunchTemplateResource.LaunchTemplateDataProperty.Placementhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-placementType: @aws-cdk/cdk.TokenorPlacementPropertyorundefined(abstract)
-
ramDiskId¶ LaunchTemplateResource.LaunchTemplateDataProperty.RamDiskIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ramdiskidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
securityGroupIds¶ LaunchTemplateResource.LaunchTemplateDataProperty.SecurityGroupIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroupidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
securityGroups¶ LaunchTemplateResource.LaunchTemplateDataProperty.SecurityGroupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroupsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
tagSpecifications¶ LaunchTemplateResource.LaunchTemplateDataProperty.TagSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorTagSpecificationProperty)[] orundefined(abstract)
-
userData¶ LaunchTemplateResource.LaunchTemplateDataProperty.UserDatahttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-userdataType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
MonitoringProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.MonitoringProperty;
// cloudformation.LaunchTemplateResource.MonitoringProperty is an interfaceimport { cloudformation.LaunchTemplateResource.MonitoringProperty } from '@aws-cdk/aws-ec2';
-
enabled¶ LaunchTemplateResource.MonitoringProperty.Enabledhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring-enabledType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
NetworkInterfaceProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.NetworkInterfaceProperty;
// cloudformation.LaunchTemplateResource.NetworkInterfaceProperty is an interfaceimport { cloudformation.LaunchTemplateResource.NetworkInterfaceProperty } from '@aws-cdk/aws-ec2';
-
associatePublicIpAddress¶ LaunchTemplateResource.NetworkInterfaceProperty.AssociatePublicIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatepublicipaddressType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
deleteOnTermination¶ LaunchTemplateResource.NetworkInterfaceProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deleteonterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ LaunchTemplateResource.NetworkInterfaceProperty.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
deviceIndex¶ LaunchTemplateResource.NetworkInterfaceProperty.DeviceIndexhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deviceindexType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groups¶ LaunchTemplateResource.NetworkInterfaceProperty.Groupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-groupsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
ipv6AddressCount¶ LaunchTemplateResource.NetworkInterfaceProperty.Ipv6AddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6Addresses¶ LaunchTemplateResource.NetworkInterfaceProperty.Ipv6Addresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorIpv6AddProperty)[] orundefined(abstract)
-
networkInterfaceId¶ LaunchTemplateResource.NetworkInterfaceProperty.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkinterfaceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddress¶ LaunchTemplateResource.NetworkInterfaceProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddresses¶ LaunchTemplateResource.NetworkInterfaceProperty.PrivateIpAddresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorPrivateIpAddProperty)[] orundefined(abstract)
-
secondaryPrivateIpAddressCount¶ LaunchTemplateResource.NetworkInterfaceProperty.SecondaryPrivateIpAddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-secondaryprivateipaddresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
subnetId¶ LaunchTemplateResource.NetworkInterfaceProperty.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
PlacementProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.PlacementProperty;
// cloudformation.LaunchTemplateResource.PlacementProperty is an interfaceimport { cloudformation.LaunchTemplateResource.PlacementProperty } from '@aws-cdk/aws-ec2';
-
affinity¶ LaunchTemplateResource.PlacementProperty.Affinityhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinityType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
availabilityZone¶ LaunchTemplateResource.PlacementProperty.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzoneType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupName¶ LaunchTemplateResource.PlacementProperty.GroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
hostId¶ LaunchTemplateResource.PlacementProperty.HostIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
tenancy¶ LaunchTemplateResource.PlacementProperty.Tenancyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
PrivateIpAddProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.PrivateIpAddProperty;
// cloudformation.LaunchTemplateResource.PrivateIpAddProperty is an interfaceimport { cloudformation.LaunchTemplateResource.PrivateIpAddProperty } from '@aws-cdk/aws-ec2';
-
primary¶ LaunchTemplateResource.PrivateIpAddProperty.Primaryhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-primaryType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddress¶ LaunchTemplateResource.PrivateIpAddProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-privateipaddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotOptionsProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.SpotOptionsProperty;
// cloudformation.LaunchTemplateResource.SpotOptionsProperty is an interfaceimport { cloudformation.LaunchTemplateResource.SpotOptionsProperty } from '@aws-cdk/aws-ec2';
-
instanceInterruptionBehavior¶ LaunchTemplateResource.SpotOptionsProperty.InstanceInterruptionBehaviorhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-instanceinterruptionbehaviorType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
maxPrice¶ LaunchTemplateResource.SpotOptionsProperty.MaxPricehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-maxpriceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
spotInstanceType¶ LaunchTemplateResource.SpotOptionsProperty.SpotInstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-spotinstancetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
TagSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResource.TagSpecificationProperty;
// cloudformation.LaunchTemplateResource.TagSpecificationProperty is an interfaceimport { cloudformation.LaunchTemplateResource.TagSpecificationProperty } from '@aws-cdk/aws-ec2';
-
resourceType¶ LaunchTemplateResource.TagSpecificationProperty.ResourceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-resourcetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
LaunchTemplateResource.TagSpecificationProperty.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
LaunchTemplateResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.LaunchTemplateResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.LaunchTemplateResourceProps;
// cloudformation.LaunchTemplateResourceProps is an interfaceimport { cloudformation.LaunchTemplateResourceProps } from '@aws-cdk/aws-ec2';
-
launchTemplateData¶ AWS::EC2::LaunchTemplate.LaunchTemplateDatahttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatedataType: @aws-cdk/cdk.TokenorLaunchTemplateDataPropertyorundefined(abstract)
-
launchTemplateName¶ AWS::EC2::LaunchTemplate.LaunchTemplateNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatenameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
NatGatewayResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NatGatewayResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NatGatewayResource;
const { cloudformation.NatGatewayResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NatGatewayResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNatGatewayResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NatGatewayResourceProps) – the properties of thisNatGatewayResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
natGatewayId¶ Type: string (readonly)
-
propertyOverrides¶ Type: NatGatewayResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NatGatewayResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NatGatewayResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NatGatewayResourceProps;
// cloudformation.NatGatewayResourceProps is an interfaceimport { cloudformation.NatGatewayResourceProps } from '@aws-cdk/aws-ec2';
-
allocationId¶ AWS::EC2::NatGateway.AllocationIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-allocationidType: string or @aws-cdk/cdk.Token(abstract)
-
subnetId¶ AWS::EC2::NatGateway.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-subnetidType: string or @aws-cdk/cdk.Token(abstract)
AWS::EC2::NatGateway.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html#cfn-ec2-natgateway-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
NetworkAclEntryResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkAclEntryResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclEntryResource;
const { cloudformation.NetworkAclEntryResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NetworkAclEntryResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNetworkAclEntryResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NetworkAclEntryResourceProps) – the properties of thisNetworkAclEntryResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
networkAclEntryName¶ Type: string (readonly)
-
propertyOverrides¶ Type: NetworkAclEntryResourceProps(readonly)
-
class
IcmpProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclEntryResource.IcmpProperty;
// cloudformation.NetworkAclEntryResource.IcmpProperty is an interfaceimport { cloudformation.NetworkAclEntryResource.IcmpProperty } from '@aws-cdk/aws-ec2';
-
code¶ NetworkAclEntryResource.IcmpProperty.Codehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html#cfn-ec2-networkaclentry-icmp-codeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
type¶ NetworkAclEntryResource.IcmpProperty.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-icmp.html#cfn-ec2-networkaclentry-icmp-typeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
PortRangeProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclEntryResource.PortRangeProperty;
// cloudformation.NetworkAclEntryResource.PortRangeProperty is an interfaceimport { cloudformation.NetworkAclEntryResource.PortRangeProperty } from '@aws-cdk/aws-ec2';
-
from¶ NetworkAclEntryResource.PortRangeProperty.Fromhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html#cfn-ec2-networkaclentry-portrange-fromType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
to¶ NetworkAclEntryResource.PortRangeProperty.Tohttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkaclentry-portrange.html#cfn-ec2-networkaclentry-portrange-toType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NetworkAclEntryResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkAclEntryResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclEntryResourceProps;
// cloudformation.NetworkAclEntryResourceProps is an interfaceimport { cloudformation.NetworkAclEntryResourceProps } from '@aws-cdk/aws-ec2';
-
cidrBlock¶ AWS::EC2::NetworkAclEntry.CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-cidrblockType: string or @aws-cdk/cdk.Token(abstract)
-
networkAclId¶ AWS::EC2::NetworkAclEntry.NetworkAclIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-networkaclidType: string or @aws-cdk/cdk.Token(abstract)
-
protocol¶ AWS::EC2::NetworkAclEntry.Protocolhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-protocolType: number or @aws-cdk/cdk.Token(abstract)
-
ruleAction¶ AWS::EC2::NetworkAclEntry.RuleActionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-ruleactionType: string or @aws-cdk/cdk.Token(abstract)
-
ruleNumber¶ AWS::EC2::NetworkAclEntry.RuleNumberhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-rulenumberType: number or @aws-cdk/cdk.Token(abstract)
-
egress¶ AWS::EC2::NetworkAclEntry.Egresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-egressType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
icmp¶ AWS::EC2::NetworkAclEntry.Icmphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-icmpType: @aws-cdk/cdk.TokenorIcmpPropertyorundefined(abstract)
-
ipv6CidrBlock¶ AWS::EC2::NetworkAclEntry.Ipv6CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-ipv6cidrblockType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
portRange¶ AWS::EC2::NetworkAclEntry.PortRangehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html#cfn-ec2-networkaclentry-portrangeType: @aws-cdk/cdk.TokenorPortRangePropertyorundefined(abstract)
-
NetworkAclResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkAclResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclResource;
const { cloudformation.NetworkAclResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NetworkAclResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNetworkAclResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NetworkAclResourceProps) – the properties of thisNetworkAclResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
networkAclName¶ Type: string (readonly)
-
propertyOverrides¶ Type: NetworkAclResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NetworkAclResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkAclResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkAclResourceProps;
// cloudformation.NetworkAclResourceProps is an interfaceimport { cloudformation.NetworkAclResourceProps } from '@aws-cdk/aws-ec2';
-
vpcId¶ AWS::EC2::NetworkAcl.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html#cfn-ec2-networkacl-vpcidType: string or @aws-cdk/cdk.Token(abstract)
AWS::EC2::NetworkAcl.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl.html#cfn-ec2-networkacl-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
NetworkInterfaceAttachmentResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfaceAttachmentResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceAttachmentResource;
const { cloudformation.NetworkInterfaceAttachmentResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NetworkInterfaceAttachmentResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNetworkInterfaceAttachmentResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NetworkInterfaceAttachmentResourceProps) – the properties of thisNetworkInterfaceAttachmentResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
networkInterfaceAttachmentName¶ Type: string (readonly)
-
propertyOverrides¶ Type: NetworkInterfaceAttachmentResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NetworkInterfaceAttachmentResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfaceAttachmentResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceAttachmentResourceProps;
// cloudformation.NetworkInterfaceAttachmentResourceProps is an interfaceimport { cloudformation.NetworkInterfaceAttachmentResourceProps } from '@aws-cdk/aws-ec2';
-
deviceIndex¶ AWS::EC2::NetworkInterfaceAttachment.DeviceIndexhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-deviceindexType: string or @aws-cdk/cdk.Token(abstract)
-
instanceId¶ AWS::EC2::NetworkInterfaceAttachment.InstanceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-instanceidType: string or @aws-cdk/cdk.Token(abstract)
-
networkInterfaceId¶ AWS::EC2::NetworkInterfaceAttachment.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-networkinterfaceidType: string or @aws-cdk/cdk.Token(abstract)
-
deleteOnTermination¶ AWS::EC2::NetworkInterfaceAttachment.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface-attachment.html#cfn-ec2-network-interface-attachment-deleteontermType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
NetworkInterfacePermissionResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfacePermissionResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfacePermissionResource;
const { cloudformation.NetworkInterfacePermissionResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NetworkInterfacePermissionResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNetworkInterfacePermissionResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NetworkInterfacePermissionResourceProps) – the properties of thisNetworkInterfacePermissionResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
networkInterfacePermissionId¶ Type: string (readonly)
-
propertyOverrides¶ Type: NetworkInterfacePermissionResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NetworkInterfacePermissionResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfacePermissionResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfacePermissionResourceProps;
// cloudformation.NetworkInterfacePermissionResourceProps is an interfaceimport { cloudformation.NetworkInterfacePermissionResourceProps } from '@aws-cdk/aws-ec2';
-
awsAccountId¶ AWS::EC2::NetworkInterfacePermission.AwsAccountIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountidType: string or @aws-cdk/cdk.Token(abstract)
-
networkInterfaceId¶ AWS::EC2::NetworkInterfacePermission.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceidType: string or @aws-cdk/cdk.Token(abstract)
-
permission¶ AWS::EC2::NetworkInterfacePermission.Permissionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permissionType: string or @aws-cdk/cdk.Token(abstract)
-
NetworkInterfaceResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfaceResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceResource;
const { cloudformation.NetworkInterfaceResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.NetworkInterfaceResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisNetworkInterfaceResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
NetworkInterfaceResourceProps) – the properties of thisNetworkInterfaceResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
networkInterfaceName¶ Type: string (readonly)
-
networkInterfacePrimaryPrivateIpAddress¶ Type: string (readonly)
-
networkInterfaceSecondaryPrivateIpAddresses¶ Type: NetworkInterfaceSecondaryPrivateIpAddresses(readonly)
-
propertyOverrides¶ Type: NetworkInterfaceResourceProps(readonly)
-
class
InstanceIpv6AddressProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceResource.InstanceIpv6AddressProperty;
// cloudformation.NetworkInterfaceResource.InstanceIpv6AddressProperty is an interfaceimport { cloudformation.NetworkInterfaceResource.InstanceIpv6AddressProperty } from '@aws-cdk/aws-ec2';
-
ipv6Address¶ NetworkInterfaceResource.InstanceIpv6AddressProperty.Ipv6Addresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinterface-instanceipv6address.html#cfn-ec2-networkinterface-instanceipv6address-ipv6addressType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
PrivateIpAddressSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceResource.PrivateIpAddressSpecificationProperty;
// cloudformation.NetworkInterfaceResource.PrivateIpAddressSpecificationProperty is an interfaceimport { cloudformation.NetworkInterfaceResource.PrivateIpAddressSpecificationProperty } from '@aws-cdk/aws-ec2';
-
primary¶ NetworkInterfaceResource.PrivateIpAddressSpecificationProperty.Primaryhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-primaryType: boolean or @aws-cdk/cdk.Token(abstract)
-
privateIpAddress¶ NetworkInterfaceResource.PrivateIpAddressSpecificationProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-network-interface-privateipspec.html#cfn-ec2-networkinterface-privateipspecification-privateipaddressType: string or @aws-cdk/cdk.Token(abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
NetworkInterfaceResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.NetworkInterfaceResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.NetworkInterfaceResourceProps;
// cloudformation.NetworkInterfaceResourceProps is an interfaceimport { cloudformation.NetworkInterfaceResourceProps } from '@aws-cdk/aws-ec2';
-
subnetId¶ AWS::EC2::NetworkInterface.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-subnetidType: string or @aws-cdk/cdk.Token(abstract)
-
description¶ AWS::EC2::NetworkInterface.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupSet¶ AWS::EC2::NetworkInterface.GroupSethttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-groupsetType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
interfaceType¶ AWS::EC2::NetworkInterface.InterfaceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-interfacetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6AddressCount¶ AWS::EC2::NetworkInterface.Ipv6AddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-ipv6addresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6Addresses¶ AWS::EC2::NetworkInterface.Ipv6Addresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-ec2-networkinterface-ipv6addressesType: @aws-cdk/cdk.TokenorInstanceIpv6AddressPropertyorundefined(abstract)
-
privateIpAddress¶ AWS::EC2::NetworkInterface.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddressType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddresses¶ AWS::EC2::NetworkInterface.PrivateIpAddresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-privateipaddressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorPrivateIpAddressSpecificationProperty)[] orundefined(abstract)
-
secondaryPrivateIpAddressCount¶ AWS::EC2::NetworkInterface.SecondaryPrivateIpAddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-secondaryprivateipcountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceDestCheck¶ AWS::EC2::NetworkInterface.SourceDestCheckhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-sourcedestcheckType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::NetworkInterface.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-interface.html#cfn-awsec2networkinterface-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
PlacementGroupResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.PlacementGroupResource(parent, name[, properties])¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.PlacementGroupResource;
const { cloudformation.PlacementGroupResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.PlacementGroupResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisPlacementGroupResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
PlacementGroupResourcePropsorundefined) – the properties of thisPlacementGroupResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
placementGroupName¶ Type: string (readonly)
-
propertyOverrides¶ Type: PlacementGroupResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
PlacementGroupResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.PlacementGroupResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.PlacementGroupResourceProps;
// cloudformation.PlacementGroupResourceProps is an interfaceimport { cloudformation.PlacementGroupResourceProps } from '@aws-cdk/aws-ec2';
-
strategy¶ AWS::EC2::PlacementGroup.Strategyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-strategyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
RouteResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.RouteResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.RouteResource;
const { cloudformation.RouteResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.RouteResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisRouteResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
RouteResourceProps) – the properties of thisRouteResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: RouteResourceProps(readonly)
-
routeName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
RouteResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.RouteResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.RouteResourceProps;
// cloudformation.RouteResourceProps is an interfaceimport { cloudformation.RouteResourceProps } from '@aws-cdk/aws-ec2';
-
routeTableId¶ AWS::EC2::Route.RouteTableIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-routetableidType: string or @aws-cdk/cdk.Token(abstract)
-
destinationCidrBlock¶ AWS::EC2::Route.DestinationCidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-destinationcidrblockType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
destinationIpv6CidrBlock¶ AWS::EC2::Route.DestinationIpv6CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-destinationipv6cidrblockType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
egressOnlyInternetGatewayId¶ AWS::EC2::Route.EgressOnlyInternetGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-egressonlyinternetgatewayidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
gatewayId¶ AWS::EC2::Route.GatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-gatewayidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceId¶ AWS::EC2::Route.InstanceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-instanceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
natGatewayId¶ AWS::EC2::Route.NatGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-natgatewayidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
networkInterfaceId¶ AWS::EC2::Route.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-networkinterfaceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
vpcPeeringConnectionId¶ AWS::EC2::Route.VpcPeeringConnectionIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html#cfn-ec2-route-vpcpeeringconnectionidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
RouteTableResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.RouteTableResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.RouteTableResource;
const { cloudformation.RouteTableResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.RouteTableResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisRouteTableResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
RouteTableResourceProps) – the properties of thisRouteTableResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: RouteTableResourceProps(readonly)
-
routeTableId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
RouteTableResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.RouteTableResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.RouteTableResourceProps;
// cloudformation.RouteTableResourceProps is an interfaceimport { cloudformation.RouteTableResourceProps } from '@aws-cdk/aws-ec2';
-
vpcId¶ AWS::EC2::RouteTable.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html#cfn-ec2-routetable-vpcidType: string or @aws-cdk/cdk.Token(abstract)
AWS::EC2::RouteTable.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route-table.html#cfn-ec2-routetable-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
SecurityGroupEgressResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupEgressResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupEgressResource;
const { cloudformation.SecurityGroupEgressResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SecurityGroupEgressResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSecurityGroupEgressResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SecurityGroupEgressResourceProps) – the properties of thisSecurityGroupEgressResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SecurityGroupEgressResourceProps(readonly)
-
securityGroupEgressId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SecurityGroupEgressResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupEgressResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupEgressResourceProps;
// cloudformation.SecurityGroupEgressResourceProps is an interfaceimport { cloudformation.SecurityGroupEgressResourceProps } from '@aws-cdk/aws-ec2';
-
groupId¶ AWS::EC2::SecurityGroupEgress.GroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-groupidType: string or @aws-cdk/cdk.Token(abstract)
-
ipProtocol¶ AWS::EC2::SecurityGroupEgress.IpProtocolhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-ipprotocolType: string or @aws-cdk/cdk.Token(abstract)
-
cidrIp¶ AWS::EC2::SecurityGroupEgress.CidrIphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-cidripType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
cidrIpv6¶ AWS::EC2::SecurityGroupEgress.CidrIpv6http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-cidripv6Type: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ AWS::EC2::SecurityGroupEgress.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
destinationPrefixListId¶ AWS::EC2::SecurityGroupEgress.DestinationPrefixListIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-destinationprefixlistidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
destinationSecurityGroupId¶ AWS::EC2::SecurityGroupEgress.DestinationSecurityGroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-destinationsecuritygroupidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
fromPort¶ AWS::EC2::SecurityGroupEgress.FromPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-fromportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
toPort¶ AWS::EC2::SecurityGroupEgress.ToPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-security-group-egress.html#cfn-ec2-securitygroupegress-toportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
SecurityGroupIngressResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupIngressResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupIngressResource;
const { cloudformation.SecurityGroupIngressResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SecurityGroupIngressResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSecurityGroupIngressResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SecurityGroupIngressResourceProps) – the properties of thisSecurityGroupIngressResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SecurityGroupIngressResourceProps(readonly)
-
securityGroupIngressId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SecurityGroupIngressResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupIngressResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupIngressResourceProps;
// cloudformation.SecurityGroupIngressResourceProps is an interfaceimport { cloudformation.SecurityGroupIngressResourceProps } from '@aws-cdk/aws-ec2';
-
ipProtocol¶ AWS::EC2::SecurityGroupIngress.IpProtocolhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-ipprotocolType: string or @aws-cdk/cdk.Token(abstract)
-
cidrIp¶ AWS::EC2::SecurityGroupIngress.CidrIphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-cidripType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
cidrIpv6¶ AWS::EC2::SecurityGroupIngress.CidrIpv6http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-cidripv6Type: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ AWS::EC2::SecurityGroupIngress.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
fromPort¶ AWS::EC2::SecurityGroupIngress.FromPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-fromportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupId¶ AWS::EC2::SecurityGroupIngress.GroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-groupidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupName¶ AWS::EC2::SecurityGroupIngress.GroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-groupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupId¶ AWS::EC2::SecurityGroupIngress.SourceSecurityGroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupName¶ AWS::EC2::SecurityGroupIngress.SourceSecurityGroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupOwnerId¶ AWS::EC2::SecurityGroupIngress.SourceSecurityGroupOwnerIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-sourcesecuritygroupowneridType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
toPort¶ AWS::EC2::SecurityGroupIngress.ToPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-ingress.html#cfn-ec2-security-group-ingress-toportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
SecurityGroupResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupResource;
const { cloudformation.SecurityGroupResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SecurityGroupResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSecurityGroupResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SecurityGroupResourceProps) – the properties of thisSecurityGroupResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SecurityGroupResourceProps(readonly)
-
securityGroupId¶ Type: string (readonly)
-
securityGroupName¶ Type: string (readonly)
-
securityGroupVpcId¶ Type: string (readonly)
-
class
EgressProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupResource.EgressProperty;
// cloudformation.SecurityGroupResource.EgressProperty is an interfaceimport { cloudformation.SecurityGroupResource.EgressProperty } from '@aws-cdk/aws-ec2';
-
ipProtocol¶ SecurityGroupResource.EgressProperty.IpProtocolhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-ipprotocolType: string or @aws-cdk/cdk.Token(abstract)
-
cidrIp¶ SecurityGroupResource.EgressProperty.CidrIphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
cidrIpv6¶ SecurityGroupResource.EgressProperty.CidrIpv6http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripv6Type: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ SecurityGroupResource.EgressProperty.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
destinationPrefixListId¶ SecurityGroupResource.EgressProperty.DestinationPrefixListIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-destinationprefixlistidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
destinationSecurityGroupId¶ SecurityGroupResource.EgressProperty.DestinationSecurityGroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-destsecgroupidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
fromPort¶ SecurityGroupResource.EgressProperty.FromPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-fromportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
toPort¶ SecurityGroupResource.EgressProperty.ToPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
IngressProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupResource.IngressProperty;
// cloudformation.SecurityGroupResource.IngressProperty is an interfaceimport { cloudformation.SecurityGroupResource.IngressProperty } from '@aws-cdk/aws-ec2';
-
ipProtocol¶ SecurityGroupResource.IngressProperty.IpProtocolhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-ipprotocolType: string or @aws-cdk/cdk.Token(abstract)
-
cidrIp¶ SecurityGroupResource.IngressProperty.CidrIphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
cidrIpv6¶ SecurityGroupResource.IngressProperty.CidrIpv6http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-cidripv6Type: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ SecurityGroupResource.IngressProperty.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
fromPort¶ SecurityGroupResource.IngressProperty.FromPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-fromportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupId¶ SecurityGroupResource.IngressProperty.SourceSecurityGroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupName¶ SecurityGroupResource.IngressProperty.SourceSecurityGroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
sourceSecurityGroupOwnerId¶ SecurityGroupResource.IngressProperty.SourceSecurityGroupOwnerIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-sourcesecuritygroupowneridType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
toPort¶ SecurityGroupResource.IngressProperty.ToPorthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group-rule.html#cfn-ec2-security-group-rule-toportType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SecurityGroupResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SecurityGroupResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SecurityGroupResourceProps;
// cloudformation.SecurityGroupResourceProps is an interfaceimport { cloudformation.SecurityGroupResourceProps } from '@aws-cdk/aws-ec2';
-
groupDescription¶ AWS::EC2::SecurityGroup.GroupDescriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupdescriptionType: string or @aws-cdk/cdk.Token(abstract)
-
groupName¶ AWS::EC2::SecurityGroup.GroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-groupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
securityGroupEgress¶ AWS::EC2::SecurityGroup.SecurityGroupEgresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupegressType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorEgressProperty)[] orundefined(abstract)
-
securityGroupIngress¶ AWS::EC2::SecurityGroup.SecurityGroupIngresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-securitygroupingressType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorIngressProperty)[] orundefined(abstract)
AWS::EC2::SecurityGroup.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
vpcId¶ AWS::EC2::SecurityGroup.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html#cfn-ec2-securitygroup-vpcidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
SpotFleetResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SpotFleetResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource;
const { cloudformation.SpotFleetResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SpotFleetResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSpotFleetResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SpotFleetResourceProps) – the properties of thisSpotFleetResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SpotFleetResourceProps(readonly)
-
spotFleetName¶ Type: string (readonly)
-
class
BlockDeviceMappingProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.BlockDeviceMappingProperty;
// cloudformation.SpotFleetResource.BlockDeviceMappingProperty is an interfaceimport { cloudformation.SpotFleetResource.BlockDeviceMappingProperty } from '@aws-cdk/aws-ec2';
-
deviceName¶ SpotFleetResource.BlockDeviceMappingProperty.DeviceNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-devicenameType: string or @aws-cdk/cdk.Token(abstract)
-
ebs¶ SpotFleetResource.BlockDeviceMappingProperty.Ebshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-ebsType: @aws-cdk/cdk.TokenorEbsBlockDevicePropertyorundefined(abstract)
-
noDevice¶ SpotFleetResource.BlockDeviceMappingProperty.NoDevicehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-nodeviceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
virtualName¶ SpotFleetResource.BlockDeviceMappingProperty.VirtualNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings.html#cfn-ec2-spotfleet-blockdevicemapping-virtualnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
ClassicLoadBalancerProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.ClassicLoadBalancerProperty;
// cloudformation.SpotFleetResource.ClassicLoadBalancerProperty is an interfaceimport { cloudformation.SpotFleetResource.ClassicLoadBalancerProperty } from '@aws-cdk/aws-ec2';
-
name¶ SpotFleetResource.ClassicLoadBalancerProperty.Namehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancer.html#cfn-ec2-spotfleet-classicloadbalancer-nameType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
ClassicLoadBalancersConfigProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.ClassicLoadBalancersConfigProperty;
// cloudformation.SpotFleetResource.ClassicLoadBalancersConfigProperty is an interfaceimport { cloudformation.SpotFleetResource.ClassicLoadBalancersConfigProperty } from '@aws-cdk/aws-ec2';
-
classicLoadBalancers¶ SpotFleetResource.ClassicLoadBalancersConfigProperty.ClassicLoadBalancershttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-classicloadbalancersconfig.html#cfn-ec2-spotfleet-classicloadbalancersconfig-classicloadbalancersType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorClassicLoadBalancerProperty)[] (abstract)
-
-
class
EbsBlockDeviceProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.EbsBlockDeviceProperty;
// cloudformation.SpotFleetResource.EbsBlockDeviceProperty is an interfaceimport { cloudformation.SpotFleetResource.EbsBlockDeviceProperty } from '@aws-cdk/aws-ec2';
-
deleteOnTermination¶ SpotFleetResource.EbsBlockDeviceProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-deleteonterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
encrypted¶ SpotFleetResource.EbsBlockDeviceProperty.Encryptedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-encryptedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iops¶ SpotFleetResource.EbsBlockDeviceProperty.Iopshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-iopsType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
snapshotId¶ SpotFleetResource.EbsBlockDeviceProperty.SnapshotIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-snapshotidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeSize¶ SpotFleetResource.EbsBlockDeviceProperty.VolumeSizehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumesizeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
volumeType¶ SpotFleetResource.EbsBlockDeviceProperty.VolumeTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-blockdevicemappings-ebs.html#cfn-ec2-spotfleet-ebsblockdevice-volumetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
FleetLaunchTemplateSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.FleetLaunchTemplateSpecificationProperty;
// cloudformation.SpotFleetResource.FleetLaunchTemplateSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.FleetLaunchTemplateSpecificationProperty } from '@aws-cdk/aws-ec2';
-
version¶ SpotFleetResource.FleetLaunchTemplateSpecificationProperty.Versionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-versionType: string or @aws-cdk/cdk.Token(abstract)
-
launchTemplateId¶ SpotFleetResource.FleetLaunchTemplateSpecificationProperty.LaunchTemplateIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplateidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
launchTemplateName¶ SpotFleetResource.FleetLaunchTemplateSpecificationProperty.LaunchTemplateNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-fleetlaunchtemplatespecification.html#cfn-ec2-spotfleet-fleetlaunchtemplatespecification-launchtemplatenameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
GroupIdentifierProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.GroupIdentifierProperty;
// cloudformation.SpotFleetResource.GroupIdentifierProperty is an interfaceimport { cloudformation.SpotFleetResource.GroupIdentifierProperty } from '@aws-cdk/aws-ec2';
-
groupId¶ SpotFleetResource.GroupIdentifierProperty.GroupIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-securitygroups.html#cfn-ec2-spotfleet-groupidentifier-groupidType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
IamInstanceProfileSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.IamInstanceProfileSpecificationProperty;
// cloudformation.SpotFleetResource.IamInstanceProfileSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.IamInstanceProfileSpecificationProperty } from '@aws-cdk/aws-ec2';
-
arn¶ SpotFleetResource.IamInstanceProfileSpecificationProperty.Arnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-iaminstanceprofile.html#cfn-ec2-spotfleet-iaminstanceprofilespecification-arnType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
InstanceIpv6AddressProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.InstanceIpv6AddressProperty;
// cloudformation.SpotFleetResource.InstanceIpv6AddressProperty is an interfaceimport { cloudformation.SpotFleetResource.InstanceIpv6AddressProperty } from '@aws-cdk/aws-ec2';
-
ipv6Address¶ SpotFleetResource.InstanceIpv6AddressProperty.Ipv6Addresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-instanceipv6address.html#cfn-ec2-spotfleet-instanceipv6address-ipv6addressType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
InstanceNetworkInterfaceSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty;
// cloudformation.SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty } from '@aws-cdk/aws-ec2';
-
associatePublicIpAddress¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.AssociatePublicIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-associatepublicipaddressType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
deleteOnTermination¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.DeleteOnTerminationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deleteonterminationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
description¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.Descriptionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-descriptionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
deviceIndex¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.DeviceIndexhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-deviceindexType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groups¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.Groupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-groupsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
ipv6AddressCount¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.Ipv6AddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6Addresses¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.Ipv6Addresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-ipv6addressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorInstanceIpv6AddressProperty)[] orundefined(abstract)
-
networkInterfaceId¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.NetworkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-networkinterfaceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateIpAddresses¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.PrivateIpAddresseshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-privateipaddressesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorPrivateIpAddressSpecificationProperty)[] orundefined(abstract)
-
secondaryPrivateIpAddressCount¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.SecondaryPrivateIpAddressCounthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-secondaryprivateipaddresscountType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
subnetId¶ SpotFleetResource.InstanceNetworkInterfaceSpecificationProperty.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces.html#cfn-ec2-spotfleet-instancenetworkinterfacespecification-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
LaunchTemplateConfigProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.LaunchTemplateConfigProperty;
// cloudformation.SpotFleetResource.LaunchTemplateConfigProperty is an interfaceimport { cloudformation.SpotFleetResource.LaunchTemplateConfigProperty } from '@aws-cdk/aws-ec2';
-
launchTemplateSpecification¶ SpotFleetResource.LaunchTemplateConfigProperty.LaunchTemplateSpecificationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html#cfn-ec2-spotfleet-launchtemplateconfig-launchtemplatespecificationType: @aws-cdk/cdk.TokenorFleetLaunchTemplateSpecificationPropertyorundefined(abstract)
-
overrides¶ SpotFleetResource.LaunchTemplateConfigProperty.Overrideshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateconfig.html#cfn-ec2-spotfleet-launchtemplateconfig-overridesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorLaunchTemplateOverridesProperty)[] orundefined(abstract)
-
-
class
LaunchTemplateOverridesProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.LaunchTemplateOverridesProperty;
// cloudformation.SpotFleetResource.LaunchTemplateOverridesProperty is an interfaceimport { cloudformation.SpotFleetResource.LaunchTemplateOverridesProperty } from '@aws-cdk/aws-ec2';
-
availabilityZone¶ SpotFleetResource.LaunchTemplateOverridesProperty.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-availabilityzoneType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceType¶ SpotFleetResource.LaunchTemplateOverridesProperty.InstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-instancetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
spotPrice¶ SpotFleetResource.LaunchTemplateOverridesProperty.SpotPricehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-spotpriceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
subnetId¶ SpotFleetResource.LaunchTemplateOverridesProperty.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
weightedCapacity¶ SpotFleetResource.LaunchTemplateOverridesProperty.WeightedCapacityhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-launchtemplateoverrides.html#cfn-ec2-spotfleet-launchtemplateoverrides-weightedcapacityType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
LoadBalancersConfigProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.LoadBalancersConfigProperty;
// cloudformation.SpotFleetResource.LoadBalancersConfigProperty is an interfaceimport { cloudformation.SpotFleetResource.LoadBalancersConfigProperty } from '@aws-cdk/aws-ec2';
-
classicLoadBalancersConfig¶ SpotFleetResource.LoadBalancersConfigProperty.ClassicLoadBalancersConfighttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-classicloadbalancersconfigType: @aws-cdk/cdk.TokenorClassicLoadBalancersConfigPropertyorundefined(abstract)
-
targetGroupsConfig¶ SpotFleetResource.LoadBalancersConfigProperty.TargetGroupsConfighttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-loadbalancersconfig.html#cfn-ec2-spotfleet-loadbalancersconfig-targetgroupsconfigType: @aws-cdk/cdk.TokenorTargetGroupsConfigPropertyorundefined(abstract)
-
-
class
PrivateIpAddressSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.PrivateIpAddressSpecificationProperty;
// cloudformation.SpotFleetResource.PrivateIpAddressSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.PrivateIpAddressSpecificationProperty } from '@aws-cdk/aws-ec2';
-
privateIpAddress¶ SpotFleetResource.PrivateIpAddressSpecificationProperty.PrivateIpAddresshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-privateipaddressType: string or @aws-cdk/cdk.Token(abstract)
-
primary¶ SpotFleetResource.PrivateIpAddressSpecificationProperty.Primaryhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html#cfn-ec2-spotfleet-privateipaddressspecification-primaryType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotFleetLaunchSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.SpotFleetLaunchSpecificationProperty;
// cloudformation.SpotFleetResource.SpotFleetLaunchSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.SpotFleetLaunchSpecificationProperty } from '@aws-cdk/aws-ec2';
-
imageId¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.ImageIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-imageidType: string or @aws-cdk/cdk.Token(abstract)
-
instanceType¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.InstanceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-instancetypeType: string or @aws-cdk/cdk.Token(abstract)
-
blockDeviceMappings¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.BlockDeviceMappingshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-blockdevicemappingsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorBlockDeviceMappingProperty)[] orundefined(abstract)
-
ebsOptimized¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.EbsOptimizedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ebsoptimizedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iamInstanceProfile¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.IamInstanceProfilehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-iaminstanceprofileType: @aws-cdk/cdk.TokenorIamInstanceProfileSpecificationPropertyorundefined(abstract)
-
kernelId¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.KernelIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-kernelidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
keyName¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.KeyNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-keynameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
monitoring¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.Monitoringhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-monitoringType: @aws-cdk/cdk.TokenorSpotFleetMonitoringPropertyorundefined(abstract)
-
networkInterfaces¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.NetworkInterfaceshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-networkinterfacesType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorInstanceNetworkInterfaceSpecificationProperty)[] orundefined(abstract)
-
placement¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.Placementhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-placementType: @aws-cdk/cdk.TokenorSpotPlacementPropertyorundefined(abstract)
-
ramdiskId¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.RamdiskIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-ramdiskidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
securityGroups¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.SecurityGroupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-securitygroupsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorGroupIdentifierProperty)[] orundefined(abstract)
-
spotPrice¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.SpotPricehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-spotpriceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
subnetId¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-subnetidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
tagSpecifications¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.TagSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-tagspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorSpotFleetTagSpecificationProperty)[] orundefined(abstract)
-
userData¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.UserDatahttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-userdataType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
weightedCapacity¶ SpotFleetResource.SpotFleetLaunchSpecificationProperty.WeightedCapacityhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications.html#cfn-ec2-spotfleet-spotfleetlaunchspecification-weightedcapacityType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotFleetMonitoringProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.SpotFleetMonitoringProperty;
// cloudformation.SpotFleetResource.SpotFleetMonitoringProperty is an interfaceimport { cloudformation.SpotFleetResource.SpotFleetMonitoringProperty } from '@aws-cdk/aws-ec2';
-
enabled¶ SpotFleetResource.SpotFleetMonitoringProperty.Enabledhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-monitoring.html#cfn-ec2-spotfleet-spotfleetmonitoring-enabledType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotFleetRequestConfigDataProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.SpotFleetRequestConfigDataProperty;
// cloudformation.SpotFleetResource.SpotFleetRequestConfigDataProperty is an interfaceimport { cloudformation.SpotFleetResource.SpotFleetRequestConfigDataProperty } from '@aws-cdk/aws-ec2';
-
iamFleetRole¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.IamFleetRolehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-iamfleetroleType: string or @aws-cdk/cdk.Token(abstract)
-
targetCapacity¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.TargetCapacityhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-targetcapacityType: number or @aws-cdk/cdk.Token(abstract)
-
allocationStrategy¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.AllocationStrategyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-allocationstrategyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
excessCapacityTerminationPolicy¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.ExcessCapacityTerminationPolicyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-excesscapacityterminationpolicyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceInterruptionBehavior¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.InstanceInterruptionBehaviorhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-instanceinterruptionbehaviorType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
launchSpecifications¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.LaunchSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorSpotFleetLaunchSpecificationProperty)[] orundefined(abstract)
-
launchTemplateConfigs¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.LaunchTemplateConfigshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-launchtemplateconfigsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorLaunchTemplateConfigProperty)[] orundefined(abstract)
-
loadBalancersConfig¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.LoadBalancersConfighttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-loadbalancersconfigType: @aws-cdk/cdk.TokenorLoadBalancersConfigPropertyorundefined(abstract)
-
replaceUnhealthyInstances¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.ReplaceUnhealthyInstanceshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-replaceunhealthyinstancesType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
spotPrice¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.SpotPricehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-spotpriceType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
terminateInstancesWithExpiration¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.TerminateInstancesWithExpirationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-terminateinstanceswithexpirationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
type¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-typeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
validFrom¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.ValidFromhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validfromType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
validUntil¶ SpotFleetResource.SpotFleetRequestConfigDataProperty.ValidUntilhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata.html#cfn-ec2-spotfleet-spotfleetrequestconfigdata-validuntilType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotFleetTagSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.SpotFleetTagSpecificationProperty;
// cloudformation.SpotFleetResource.SpotFleetTagSpecificationProperty is an interfaceimport { cloudformation.SpotFleetResource.SpotFleetTagSpecificationProperty } from '@aws-cdk/aws-ec2';
-
resourceType¶ SpotFleetResource.SpotFleetTagSpecificationProperty.ResourceTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-tagspecifications.html#cfn-ec2-spotfleet-spotfleettagspecification-resourcetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
SpotPlacementProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.SpotPlacementProperty;
// cloudformation.SpotFleetResource.SpotPlacementProperty is an interfaceimport { cloudformation.SpotFleetResource.SpotPlacementProperty } from '@aws-cdk/aws-ec2';
-
availabilityZone¶ SpotFleetResource.SpotPlacementProperty.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-availabilityzoneType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
groupName¶ SpotFleetResource.SpotPlacementProperty.GroupNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-groupnameType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
tenancy¶ SpotFleetResource.SpotPlacementProperty.Tenancyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-placement.html#cfn-ec2-spotfleet-spotplacement-tenancyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
-
class
TargetGroupProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.TargetGroupProperty;
// cloudformation.SpotFleetResource.TargetGroupProperty is an interfaceimport { cloudformation.SpotFleetResource.TargetGroupProperty } from '@aws-cdk/aws-ec2';
-
arn¶ SpotFleetResource.TargetGroupProperty.Arnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroup.html#cfn-ec2-spotfleet-targetgroup-arnType: string or @aws-cdk/cdk.Token(abstract)
-
-
class
TargetGroupsConfigProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResource.TargetGroupsConfigProperty;
// cloudformation.SpotFleetResource.TargetGroupsConfigProperty is an interfaceimport { cloudformation.SpotFleetResource.TargetGroupsConfigProperty } from '@aws-cdk/aws-ec2';
-
targetGroups¶ SpotFleetResource.TargetGroupsConfigProperty.TargetGroupshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-targetgroupsconfig.html#cfn-ec2-spotfleet-targetgroupsconfig-targetgroupsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorTargetGroupProperty)[] (abstract)
-
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SpotFleetResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SpotFleetResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SpotFleetResourceProps;
// cloudformation.SpotFleetResourceProps is an interfaceimport { cloudformation.SpotFleetResourceProps } from '@aws-cdk/aws-ec2';
-
spotFleetRequestConfigData¶ AWS::EC2::SpotFleet.SpotFleetRequestConfigDatahttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-spotfleet.html#cfn-ec2-spotfleet-spotfleetrequestconfigdataType: @aws-cdk/cdk.TokenorSpotFleetRequestConfigDataProperty(abstract)
-
SubnetCidrBlockResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetCidrBlockResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetCidrBlockResource;
const { cloudformation.SubnetCidrBlockResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SubnetCidrBlockResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSubnetCidrBlockResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SubnetCidrBlockResourceProps) – the properties of thisSubnetCidrBlockResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SubnetCidrBlockResourceProps(readonly)
-
subnetCidrBlockId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SubnetCidrBlockResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetCidrBlockResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetCidrBlockResourceProps;
// cloudformation.SubnetCidrBlockResourceProps is an interfaceimport { cloudformation.SubnetCidrBlockResourceProps } from '@aws-cdk/aws-ec2';
-
ipv6CidrBlock¶ AWS::EC2::SubnetCidrBlock.Ipv6CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html#cfn-ec2-subnetcidrblock-ipv6cidrblockType: string or @aws-cdk/cdk.Token(abstract)
-
subnetId¶ AWS::EC2::SubnetCidrBlock.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html#cfn-ec2-subnetcidrblock-subnetidType: string or @aws-cdk/cdk.Token(abstract)
-
SubnetNetworkAclAssociationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetNetworkAclAssociationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetNetworkAclAssociationResource;
const { cloudformation.SubnetNetworkAclAssociationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SubnetNetworkAclAssociationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSubnetNetworkAclAssociationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SubnetNetworkAclAssociationResourceProps) – the properties of thisSubnetNetworkAclAssociationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SubnetNetworkAclAssociationResourceProps(readonly)
-
subnetNetworkAclAssociationAssociationId¶ Type: string (readonly)
-
subnetNetworkAclAssociationName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SubnetNetworkAclAssociationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetNetworkAclAssociationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetNetworkAclAssociationResourceProps;
// cloudformation.SubnetNetworkAclAssociationResourceProps is an interfaceimport { cloudformation.SubnetNetworkAclAssociationResourceProps } from '@aws-cdk/aws-ec2';
-
networkAclId¶ AWS::EC2::SubnetNetworkAclAssociation.NetworkAclIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html#cfn-ec2-subnetnetworkaclassociation-networkaclidType: string or @aws-cdk/cdk.Token(abstract)
-
subnetId¶ AWS::EC2::SubnetNetworkAclAssociation.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html#cfn-ec2-subnetnetworkaclassociation-associationidType: string or @aws-cdk/cdk.Token(abstract)
-
SubnetResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetResource;
const { cloudformation.SubnetResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SubnetResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSubnetResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SubnetResourceProps) – the properties of thisSubnetResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SubnetResourceProps(readonly)
-
subnetAvailabilityZone¶ Type: string (readonly)
-
subnetId¶ Type: string (readonly)
-
subnetIpv6CidrBlocks¶ Type: SubnetIpv6CidrBlocks(readonly)
-
subnetNetworkAclAssociationId¶ Type: string (readonly)
-
subnetVpcId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SubnetResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetResourceProps;
// cloudformation.SubnetResourceProps is an interfaceimport { cloudformation.SubnetResourceProps } from '@aws-cdk/aws-ec2';
-
cidrBlock¶ AWS::EC2::Subnet.CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-cidrblockType: string or @aws-cdk/cdk.Token(abstract)
-
vpcId¶ AWS::EC2::Subnet.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-awsec2subnet-prop-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
assignIpv6AddressOnCreation¶ AWS::EC2::Subnet.AssignIpv6AddressOnCreationhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-assignipv6addressoncreationType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
availabilityZone¶ AWS::EC2::Subnet.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-availabilityzoneType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
ipv6CidrBlock¶ AWS::EC2::Subnet.Ipv6CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-ipv6cidrblockType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
mapPublicIpOnLaunch¶ AWS::EC2::Subnet.MapPublicIpOnLaunchhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-mappubliciponlaunchType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::Subnet.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
SubnetRouteTableAssociationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetRouteTableAssociationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetRouteTableAssociationResource;
const { cloudformation.SubnetRouteTableAssociationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.SubnetRouteTableAssociationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisSubnetRouteTableAssociationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
SubnetRouteTableAssociationResourceProps) – the properties of thisSubnetRouteTableAssociationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: SubnetRouteTableAssociationResourceProps(readonly)
-
subnetRouteTableAssociationName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
SubnetRouteTableAssociationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.SubnetRouteTableAssociationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.SubnetRouteTableAssociationResourceProps;
// cloudformation.SubnetRouteTableAssociationResourceProps is an interfaceimport { cloudformation.SubnetRouteTableAssociationResourceProps } from '@aws-cdk/aws-ec2';
-
routeTableId¶ AWS::EC2::SubnetRouteTableAssociation.RouteTableIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html#cfn-ec2-subnetroutetableassociation-routetableidType: string or @aws-cdk/cdk.Token(abstract)
-
subnetId¶ AWS::EC2::SubnetRouteTableAssociation.SubnetIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-route-table-assoc.html#cfn-ec2-subnetroutetableassociation-subnetidType: string or @aws-cdk/cdk.Token(abstract)
-
TrunkInterfaceAssociationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.TrunkInterfaceAssociationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.TrunkInterfaceAssociationResource;
const { cloudformation.TrunkInterfaceAssociationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.TrunkInterfaceAssociationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisTrunkInterfaceAssociationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
TrunkInterfaceAssociationResourceProps) – the properties of thisTrunkInterfaceAssociationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: TrunkInterfaceAssociationResourceProps(readonly)
-
trunkInterfaceAssociationId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
TrunkInterfaceAssociationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.TrunkInterfaceAssociationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.TrunkInterfaceAssociationResourceProps;
// cloudformation.TrunkInterfaceAssociationResourceProps is an interfaceimport { cloudformation.TrunkInterfaceAssociationResourceProps } from '@aws-cdk/aws-ec2';
-
branchInterfaceId¶ AWS::EC2::TrunkInterfaceAssociation.BranchInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-branchinterfaceidType: string or @aws-cdk/cdk.Token(abstract)
-
trunkInterfaceId¶ AWS::EC2::TrunkInterfaceAssociation.TrunkInterfaceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-trunkinterfaceidType: string or @aws-cdk/cdk.Token(abstract)
-
greKey¶ AWS::EC2::TrunkInterfaceAssociation.GREKeyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-grekeyType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
vlanId¶ AWS::EC2::TrunkInterfaceAssociation.VLANIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-trunkinterfaceassociation.html#cfn-ec2-trunkinterfaceassociation-vlanidType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
VPCCidrBlockResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCCidrBlockResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCCidrBlockResource;
const { cloudformation.VPCCidrBlockResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCCidrBlockResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCCidrBlockResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCCidrBlockResourceProps) – the properties of thisVPCCidrBlockResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCCidrBlockResourceProps(readonly)
-
vpcCidrBlockId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCCidrBlockResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCCidrBlockResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCCidrBlockResourceProps;
// cloudformation.VPCCidrBlockResourceProps is an interfaceimport { cloudformation.VPCCidrBlockResourceProps } from '@aws-cdk/aws-ec2';
-
vpcId¶ AWS::EC2::VPCCidrBlock.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
amazonProvidedIpv6CidrBlock¶ AWS::EC2::VPCCidrBlock.AmazonProvidedIpv6CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-amazonprovidedipv6cidrblockType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
cidrBlock¶ AWS::EC2::VPCCidrBlock.CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-cidrblockType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
VPCDHCPOptionsAssociationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCDHCPOptionsAssociationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCDHCPOptionsAssociationResource;
const { cloudformation.VPCDHCPOptionsAssociationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCDHCPOptionsAssociationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCDHCPOptionsAssociationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCDHCPOptionsAssociationResourceProps) – the properties of thisVPCDHCPOptionsAssociationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCDHCPOptionsAssociationResourceProps(readonly)
-
vpcdhcpOptionsAssociationName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCDHCPOptionsAssociationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCDHCPOptionsAssociationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCDHCPOptionsAssociationResourceProps;
// cloudformation.VPCDHCPOptionsAssociationResourceProps is an interfaceimport { cloudformation.VPCDHCPOptionsAssociationResourceProps } from '@aws-cdk/aws-ec2';
-
dhcpOptionsId¶ AWS::EC2::VPCDHCPOptionsAssociation.DhcpOptionsIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html#cfn-ec2-vpcdhcpoptionsassociation-dhcpoptionsidType: string or @aws-cdk/cdk.Token(abstract)
-
vpcId¶ AWS::EC2::VPCDHCPOptionsAssociation.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-dhcp-options-assoc.html#cfn-ec2-vpcdhcpoptionsassociation-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
VPCEndpointConnectionNotificationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointConnectionNotificationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointConnectionNotificationResource;
const { cloudformation.VPCEndpointConnectionNotificationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCEndpointConnectionNotificationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCEndpointConnectionNotificationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCEndpointConnectionNotificationResourceProps) – the properties of thisVPCEndpointConnectionNotificationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCEndpointConnectionNotificationResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCEndpointConnectionNotificationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointConnectionNotificationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointConnectionNotificationResourceProps;
// cloudformation.VPCEndpointConnectionNotificationResourceProps is an interfaceimport { cloudformation.VPCEndpointConnectionNotificationResourceProps } from '@aws-cdk/aws-ec2';
-
connectionEvents¶ AWS::EC2::VPCEndpointConnectionNotification.ConnectionEventshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-connectioneventsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] (abstract)
-
connectionNotificationArn¶ AWS::EC2::VPCEndpointConnectionNotification.ConnectionNotificationArnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-connectionnotificationarnType: string or @aws-cdk/cdk.Token(abstract)
-
serviceId¶ AWS::EC2::VPCEndpointConnectionNotification.ServiceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-serviceidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
vpcEndpointId¶ AWS::EC2::VPCEndpointConnectionNotification.VPCEndpointIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointconnectionnotification.html#cfn-ec2-vpcendpointconnectionnotification-vpcendpointidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
VPCEndpointResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointResource;
const { cloudformation.VPCEndpointResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCEndpointResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCEndpointResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCEndpointResourceProps) – the properties of thisVPCEndpointResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCEndpointResourceProps(readonly)
-
vpcEndpointCreationTimestamp¶ Type: string (readonly)
-
vpcEndpointDnsEntries¶ Type: VPCEndpointDnsEntries(readonly)
-
vpcEndpointId¶ Type: string (readonly)
-
vpcEndpointNetworkInterfaceIds¶ Type: VPCEndpointNetworkInterfaceIds(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCEndpointResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointResourceProps;
// cloudformation.VPCEndpointResourceProps is an interfaceimport { cloudformation.VPCEndpointResourceProps } from '@aws-cdk/aws-ec2';
-
serviceName¶ AWS::EC2::VPCEndpoint.ServiceNamehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicenameType: string or @aws-cdk/cdk.Token(abstract)
-
vpcId¶ AWS::EC2::VPCEndpoint.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
policyDocument¶ AWS::EC2::VPCEndpoint.PolicyDocumenthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-policydocumentType: json or @aws-cdk/cdk.Tokenorundefined(abstract)
-
privateDnsEnabled¶ AWS::EC2::VPCEndpoint.PrivateDnsEnabledhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabledType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
routeTableIds¶ AWS::EC2::VPCEndpoint.RouteTableIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
securityGroupIds¶ AWS::EC2::VPCEndpoint.SecurityGroupIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
subnetIds¶ AWS::EC2::VPCEndpoint.SubnetIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
vpcEndpointType¶ AWS::EC2::VPCEndpoint.VpcEndpointTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
VPCEndpointServicePermissionsResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointServicePermissionsResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointServicePermissionsResource;
const { cloudformation.VPCEndpointServicePermissionsResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCEndpointServicePermissionsResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCEndpointServicePermissionsResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCEndpointServicePermissionsResourceProps) – the properties of thisVPCEndpointServicePermissionsResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCEndpointServicePermissionsResourceProps(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCEndpointServicePermissionsResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCEndpointServicePermissionsResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCEndpointServicePermissionsResourceProps;
// cloudformation.VPCEndpointServicePermissionsResourceProps is an interfaceimport { cloudformation.VPCEndpointServicePermissionsResourceProps } from '@aws-cdk/aws-ec2';
-
serviceId¶ AWS::EC2::VPCEndpointServicePermissions.ServiceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceidType: string or @aws-cdk/cdk.Token(abstract)
-
allowedPrincipals¶ AWS::EC2::VPCEndpointServicePermissions.AllowedPrincipalshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipalsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] orundefined(abstract)
-
VPCGatewayAttachmentResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCGatewayAttachmentResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCGatewayAttachmentResource;
const { cloudformation.VPCGatewayAttachmentResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCGatewayAttachmentResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCGatewayAttachmentResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCGatewayAttachmentResourceProps) – the properties of thisVPCGatewayAttachmentResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCGatewayAttachmentResourceProps(readonly)
-
vpcGatewayAttachmentName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCGatewayAttachmentResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCGatewayAttachmentResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCGatewayAttachmentResourceProps;
// cloudformation.VPCGatewayAttachmentResourceProps is an interfaceimport { cloudformation.VPCGatewayAttachmentResourceProps } from '@aws-cdk/aws-ec2';
-
vpcId¶ AWS::EC2::VPCGatewayAttachment.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
internetGatewayId¶ AWS::EC2::VPCGatewayAttachment.InternetGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-internetgatewayidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
vpnGatewayId¶ AWS::EC2::VPCGatewayAttachment.VpnGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpngatewayidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
VPCPeeringConnectionResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCPeeringConnectionResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCPeeringConnectionResource;
const { cloudformation.VPCPeeringConnectionResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCPeeringConnectionResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCPeeringConnectionResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCPeeringConnectionResourceProps) – the properties of thisVPCPeeringConnectionResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCPeeringConnectionResourceProps(readonly)
-
vpcPeeringConnectionName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCPeeringConnectionResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCPeeringConnectionResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCPeeringConnectionResourceProps;
// cloudformation.VPCPeeringConnectionResourceProps is an interfaceimport { cloudformation.VPCPeeringConnectionResourceProps } from '@aws-cdk/aws-ec2';
-
peerVpcId¶ AWS::EC2::VPCPeeringConnection.PeerVpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peervpcidType: string or @aws-cdk/cdk.Token(abstract)
-
vpcId¶ AWS::EC2::VPCPeeringConnection.VpcIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-vpcidType: string or @aws-cdk/cdk.Token(abstract)
-
peerOwnerId¶ AWS::EC2::VPCPeeringConnection.PeerOwnerIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerowneridType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
peerRegion¶ AWS::EC2::VPCPeeringConnection.PeerRegionhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerregionType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
peerRoleArn¶ AWS::EC2::VPCPeeringConnection.PeerRoleArnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerrolearnType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::VPCPeeringConnection.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
VPCResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCResource;
const { cloudformation.VPCResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPCResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPCResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPCResourceProps) – the properties of thisVPCResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPCResourceProps(readonly)
-
vpcCidrBlock¶ Type: string (readonly)
-
vpcCidrBlockAssociations¶ Type: VPCCidrBlockAssociations(readonly)
-
vpcDefaultNetworkAcl¶ Type: string (readonly)
-
vpcDefaultSecurityGroup¶ Type: string (readonly)
-
vpcId¶ Type: string (readonly)
-
vpcIpv6CidrBlocks¶ Type: VPCIpv6CidrBlocks(readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPCResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPCResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPCResourceProps;
// cloudformation.VPCResourceProps is an interfaceimport { cloudformation.VPCResourceProps } from '@aws-cdk/aws-ec2';
-
cidrBlock¶ AWS::EC2::VPC.CidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-cidrblockType: string or @aws-cdk/cdk.Token(abstract)
-
enableDnsHostnames¶ AWS::EC2::VPC.EnableDnsHostnameshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-EnableDnsHostnamesType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
enableDnsSupport¶ AWS::EC2::VPC.EnableDnsSupporthttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-EnableDnsSupportType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
instanceTenancy¶ AWS::EC2::VPC.InstanceTenancyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-instancetenancyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::VPC.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-aws-ec2-vpc-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
VPNConnectionResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNConnectionResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNConnectionResource;
const { cloudformation.VPNConnectionResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPNConnectionResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPNConnectionResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPNConnectionResourceProps) – the properties of thisVPNConnectionResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPNConnectionResourceProps(readonly)
-
vpnConnectionName¶ Type: string (readonly)
-
class
VpnTunnelOptionsSpecificationProperty¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNConnectionResource.VpnTunnelOptionsSpecificationProperty;
// cloudformation.VPNConnectionResource.VpnTunnelOptionsSpecificationProperty is an interfaceimport { cloudformation.VPNConnectionResource.VpnTunnelOptionsSpecificationProperty } from '@aws-cdk/aws-ec2';
VPNConnectionResource.VpnTunnelOptionsSpecificationProperty.PreSharedKeyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html#cfn-ec2-vpnconnection-vpntunneloptionsspecification-presharedkeyType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
tunnelInsideCidr¶ VPNConnectionResource.VpnTunnelOptionsSpecificationProperty.TunnelInsideCidrhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunneloptionsspecification.html#cfn-ec2-vpnconnection-vpntunneloptionsspecification-tunnelinsidecidrType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPNConnectionResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNConnectionResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNConnectionResourceProps;
// cloudformation.VPNConnectionResourceProps is an interfaceimport { cloudformation.VPNConnectionResourceProps } from '@aws-cdk/aws-ec2';
-
customerGatewayId¶ AWS::EC2::VPNConnection.CustomerGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-customergatewayidType: string or @aws-cdk/cdk.Token(abstract)
-
type¶ AWS::EC2::VPNConnection.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-typeType: string or @aws-cdk/cdk.Token(abstract)
-
vpnGatewayId¶ AWS::EC2::VPNConnection.VpnGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-vpngatewayidType: string or @aws-cdk/cdk.Token(abstract)
-
staticRoutesOnly¶ AWS::EC2::VPNConnection.StaticRoutesOnlyhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-StaticRoutesOnlyType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::VPNConnection.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
vpnTunnelOptionsSpecifications¶ AWS::EC2::VPNConnection.VpnTunnelOptionsSpecificationshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection.html#cfn-ec2-vpnconnection-vpntunneloptionsspecificationsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.TokenorVpnTunnelOptionsSpecificationProperty)[] orundefined(abstract)
-
VPNConnectionRouteResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNConnectionRouteResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNConnectionRouteResource;
const { cloudformation.VPNConnectionRouteResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPNConnectionRouteResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPNConnectionRouteResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPNConnectionRouteResourceProps) – the properties of thisVPNConnectionRouteResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPNConnectionRouteResourceProps(readonly)
-
vpnConnectionRouteName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPNConnectionRouteResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNConnectionRouteResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNConnectionRouteResourceProps;
// cloudformation.VPNConnectionRouteResourceProps is an interfaceimport { cloudformation.VPNConnectionRouteResourceProps } from '@aws-cdk/aws-ec2';
-
destinationCidrBlock¶ AWS::EC2::VPNConnectionRoute.DestinationCidrBlockhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html#cfn-ec2-vpnconnectionroute-cidrblockType: string or @aws-cdk/cdk.Token(abstract)
-
vpnConnectionId¶ AWS::EC2::VPNConnectionRoute.VpnConnectionIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-connection-route.html#cfn-ec2-vpnconnectionroute-connectionidType: string or @aws-cdk/cdk.Token(abstract)
-
VPNGatewayResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNGatewayResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNGatewayResource;
const { cloudformation.VPNGatewayResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPNGatewayResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPNGatewayResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPNGatewayResourceProps) – the properties of thisVPNGatewayResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPNGatewayResourceProps(readonly)
-
vpnGatewayName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPNGatewayResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNGatewayResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNGatewayResourceProps;
// cloudformation.VPNGatewayResourceProps is an interfaceimport { cloudformation.VPNGatewayResourceProps } from '@aws-cdk/aws-ec2';
-
type¶ AWS::EC2::VPNGateway.Typehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-typeType: string or @aws-cdk/cdk.Token(abstract)
-
amazonSideAsn¶ AWS::EC2::VPNGateway.AmazonSideAsnhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-amazonsideasnType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::VPNGateway.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gateway.html#cfn-ec2-vpngateway-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
VPNGatewayRoutePropagationResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNGatewayRoutePropagationResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNGatewayRoutePropagationResource;
const { cloudformation.VPNGatewayRoutePropagationResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VPNGatewayRoutePropagationResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVPNGatewayRoutePropagationResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VPNGatewayRoutePropagationResourceProps) – the properties of thisVPNGatewayRoutePropagationResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VPNGatewayRoutePropagationResourceProps(readonly)
-
vpnGatewayRoutePropagationName¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VPNGatewayRoutePropagationResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VPNGatewayRoutePropagationResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VPNGatewayRoutePropagationResourceProps;
// cloudformation.VPNGatewayRoutePropagationResourceProps is an interfaceimport { cloudformation.VPNGatewayRoutePropagationResourceProps } from '@aws-cdk/aws-ec2';
-
routeTableIds¶ AWS::EC2::VPNGatewayRoutePropagation.RouteTableIdshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableidsType: @aws-cdk/cdk.Tokenor (string or@aws-cdk/cdk.Token)[] (abstract)
-
vpnGatewayId¶ AWS::EC2::VPNGatewayRoutePropagation.VpnGatewayIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayidType: string or @aws-cdk/cdk.Token(abstract)
-
VolumeAttachmentResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VolumeAttachmentResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VolumeAttachmentResource;
const { cloudformation.VolumeAttachmentResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VolumeAttachmentResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVolumeAttachmentResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VolumeAttachmentResourceProps) – the properties of thisVolumeAttachmentResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VolumeAttachmentResourceProps(readonly)
-
volumeAttachmentId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VolumeAttachmentResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VolumeAttachmentResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VolumeAttachmentResourceProps;
// cloudformation.VolumeAttachmentResourceProps is an interfaceimport { cloudformation.VolumeAttachmentResourceProps } from '@aws-cdk/aws-ec2';
-
device¶ AWS::EC2::VolumeAttachment.Devicehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-deviceType: string or @aws-cdk/cdk.Token(abstract)
-
instanceId¶ AWS::EC2::VolumeAttachment.InstanceIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-instanceidType: string or @aws-cdk/cdk.Token(abstract)
-
volumeId¶ AWS::EC2::VolumeAttachment.VolumeIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-volumeidType: string or @aws-cdk/cdk.Token(abstract)
-
VolumeResource¶
-
class
@aws-cdk/aws-ec2.cloudformation.VolumeResource(parent, name, properties)¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VolumeResource;
const { cloudformation.VolumeResource } = require('@aws-cdk/aws-ec2');
import { cloudformation.VolumeResource } from '@aws-cdk/aws-ec2';
Extends: Parameters: - parent (
@aws-cdk/cdk.Construct) – thecdk.ConstructthisVolumeResourceis a part of - name (string) – the name of the resource in the
cdk.Constructtree - properties (
VolumeResourceProps) – the properties of thisVolumeResource
-
renderProperties([properties]) → string => any¶ Overrides
@aws-cdk/cdk.Resource.renderProperties()Protected method
Parameters: properties (any or undefined) –Return type: string => (any or undefined)
-
resourceTypeName¶ The CloudFormation resource type name for this resource class.
Type: string (readonly) (static)
-
propertyOverrides¶ Type: VolumeResourceProps(readonly)
-
volumeId¶ Type: string (readonly)
-
addChild(child, childName)¶ Inherited from
@aws-cdk/cdk.ConstructAdds a child construct to this node.
Protected method
Parameters: - child (
@aws-cdk/cdk.Construct) – The child construct - childName (string) –
Returns: The resolved path part name of the child
- child (
-
addError(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds an { error: <message> } metadata entry to this construct. The toolkit will fail synthesis when errors are reported.
Parameters: message (string) – The error message. Return type: @aws-cdk/cdk.Construct
-
addInfo(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { “aws:cdk:info”: <message> } metadata entry to this construct. The toolkit will display the info message when apps are synthesized.
Parameters: message (string) – The info message. Return type: @aws-cdk/cdk.Construct
-
addMetadata(type[, data[, from]]) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a metadata entry to this construct. Entries are arbitrary values and will also include a stack trace to allow tracing back to the code location for when the entry was added. It can be used, for example, to include source mapping in CloudFormation templates to improve diagnostics.
Parameters: - type (string) – a string denoting the type of metadata
- data (any or
undefined) – the value of the metadata (can be a Token). If null/undefined, metadata will not be added. - from (any or
undefined) – a function under which to restrict the metadata entry’s stack trace (defaults to this.addMetadata)
Return type:
-
addWarning(message) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructAdds a { warning: <message> } metadata entry to this construct. The toolkit will display the warning when an app is synthesized, or fail if run in –strict mode.
Parameters: message (string) – The warning message. Return type: @aws-cdk/cdk.Construct
-
ancestors([upTo]) → @aws-cdk/cdk.Construct[]¶ Inherited from
@aws-cdk/cdk.ConstructReturn the ancestors (including self) of this Construct up until and excluding the indicated component
Parameters: upTo ( @aws-cdk/cdk.Constructorundefined) –Return type: @aws-cdk/cdk.Construct[]
-
findChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path Throws an exception if the descendant is not found.
Parameters: path (string) – Returns: Child with the given path. Return type: @aws-cdk/cdk.Construct
-
getContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieves a value from tree context. Context is usually initialized at the root, but can be overridden at any point in the tree.
Parameters: key (string) – The context key Returns: The context value or undefined Return type: any or undefined
-
lock()¶ Inherited from
@aws-cdk/cdk.ConstructLocks this construct from allowing more children to be added. After this call, no more children can be added to this construct or to any children.
Protected method
-
requireContext(key) → any¶ Inherited from
@aws-cdk/cdk.ConstructRetrieve a value from tree-global context It is an error if the context object is not available.
Parameters: key (string) – Return type: any or undefined
-
required(props, name) → any¶ Inherited from
@aws-cdk/cdk.ConstructThrows if the props bag doesn’t include the property name. In the future we can add some type-checking here, maybe even auto-generate during compilation.
Protected method
Parameters: - props (any or
undefined) – The props bag. - name (string) – The name of the required property.
Return type: any or
undefined- props (any or
-
setContext(key[, value])¶ Inherited from
@aws-cdk/cdk.ConstructThis can be used to set contextual values. Context must be set before any children are added, since children may consult context info during construction. If the key already exists, it will be overridden.
Parameters: - key (string) – The context key
- value (any or
undefined) – The context value
-
toString() → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string representation of this construct.
Return type: string
-
toTreeString([depth]) → string¶ Inherited from
@aws-cdk/cdk.ConstructReturns a string with a tree representation of this construct and it’s children.
Parameters: depth (number or undefined) –Return type: string
-
tryFindChild(path) → @aws-cdk/cdk.Construct¶ Inherited from
@aws-cdk/cdk.ConstructReturn a descendant by path, or undefined
Parameters: path (string) – Returns: a child by path or undefined if not found. Return type: @aws-cdk/cdk.Constructorundefined
-
unlock()¶ Inherited from
@aws-cdk/cdk.ConstructUnlocks this costruct and allows mutations (adding children).
Protected method
-
validate() → string[]¶ Inherited from
@aws-cdk/cdk.ConstructThis method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
Returns: An array of validation error messages, or an empty array if there the construct is valid. Return type: string[]
-
validateTree() → @aws-cdk/cdk.ValidationError[]¶ Inherited from
@aws-cdk/cdk.ConstructInvokes ‘validate’ on all child constructs and then on this construct (depth-first).
Returns: A list of validation errors. If the list is empty, all constructs are valid. Return type: @aws-cdk/cdk.ValidationError[]
-
children¶ Inherited from
@aws-cdk/cdk.ConstructAll direct children of this construct.
Type: @aws-cdk/cdk.Construct[] (readonly)
-
id¶ Inherited from
@aws-cdk/cdk.ConstructThe local id of the construct. This id is unique amongst its siblings. To obtain a tree-global unique id for this construct, use uniqueId.
Type: string (readonly)
-
locked¶ Inherited from
@aws-cdk/cdk.ConstructReturns true if this construct or any of it’s parent constructs are locked.
Protected property
Type: boolean (readonly)
-
metadata¶ Inherited from
@aws-cdk/cdk.ConstructAn array of metadata objects associated with this construct. This can be used, for example, to implement support for deprecation notices, source mapping, etc.
Type: @aws-cdk/cdk.MetadataEntry[] (readonly)
-
path¶ Inherited from
@aws-cdk/cdk.ConstructThe full path of this construct in the tree. Components are separated by ‘/’.
Type: string (readonly)
-
uniqueId¶ Inherited from
@aws-cdk/cdk.ConstructA tree-global unique alphanumeric identifier for this construct. Includes all components of the tree.
Type: string (readonly)
-
parent¶ Inherited from
@aws-cdk/cdk.ConstructReturns the parent of this node or undefined if this is a root node.
Type: @aws-cdk/cdk.Constructorundefined(readonly)
-
ref¶ Inherited from
@aws-cdk/cdk.ReferenceableReturns a token to a CloudFormation { Ref } that references this entity based on it’s logical ID.
Type: string (readonly)
-
addDeletionOverride(path)¶ Inherited from
@aws-cdk/cdk.ResourceSyntactic sugar for addOverride(path, undefined).
Parameters: path (string) – The path of the value to delete
-
addDependency(*other)¶ Inherited from
@aws-cdk/cdk.ResourceAdds a dependency on another resource.
Parameters: *other ( @aws-cdk/cdk.IDependable) – The other resource.
-
addOverride(path[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to the synthesized CloudFormation resource. To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).
Parameters: - path (string) – The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.
- value (any or
undefined) – The value. Could be primitive or complex.
-
addPropertyDeletionOverride(propertyPath)¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override that deletes the value of a property from the resource definition.
Parameters: propertyPath (string) – The path to the property.
-
addPropertyOverride(propertyPath[, value])¶ Inherited from
@aws-cdk/cdk.ResourceAdds an override to a resource property. Syntactic sugar for addOverride(“Properties.<…>”, value).
Parameters: - propertyPath (string) – The path of the property
- value (any or
undefined) – The value
-
getAtt(attributeName) → @aws-cdk/cdk.CloudFormationToken¶ Inherited from
@aws-cdk/cdk.ResourceReturns a token for an runtime attribute of this resource. Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.
Parameters: attributeName (string) – The name of the attribute. Return type: @aws-cdk/cdk.CloudFormationToken
-
toCloudFormation() → json¶ Inherited from
@aws-cdk/cdk.ResourceEmits CloudFormation for this resource.
Return type: json
-
options¶ Inherited from
@aws-cdk/cdk.ResourceOptions for this resource, such as condition, update policy etc.
Type: @aws-cdk/cdk.ResourceOptions(readonly)
-
resourceType¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource type.
Type: string (readonly)
-
properties¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource properties. This object is rendered via a call to “renderProperties(this.properties)”.
Protected property
Type: any or undefined(readonly)
-
untypedPropertyOverrides¶ Inherited from
@aws-cdk/cdk.ResourceAWS resource property overrides. During synthesis, the method “renderProperties(this.overrides)” is called with this object, and merged on top of the output of “renderProperties(this.properties)”. Derived classes should expose a strongly-typed version of this object as a public property called propertyOverrides.
Protected property
Type: any or undefined(readonly)
-
creationStackTrace¶ Inherited from
@aws-cdk/cdk.StackElementType: string[] (readonly)
-
dependencyElements¶ Inherited from
@aws-cdk/cdk.StackElementReturns the set of all stack elements (resources, parameters, conditions) that should be added when a resource “depends on” this construct.
Type: @aws-cdk/cdk.IDependable[] (readonly)
-
logicalId¶ Inherited from
@aws-cdk/cdk.StackElementThe logical ID for this CloudFormation stack element
Type: string (readonly)
-
stackPath¶ Inherited from
@aws-cdk/cdk.StackElementReturn the path with respect to the stack
Type: string (readonly)
-
stack¶ Inherited from
@aws-cdk/cdk.StackElementThe stack this Construct has been made a part of
Protected property
Type: @aws-cdk/cdk.Stack
- parent (
VolumeResourceProps (interface)¶
-
class
@aws-cdk/aws-ec2.cloudformation.VolumeResourceProps¶ Language-specific names:
using Amazon.CDK.AWS.EC2;
import software.amazon.awscdk.services.ec2.cloudformation.VolumeResourceProps;
// cloudformation.VolumeResourceProps is an interfaceimport { cloudformation.VolumeResourceProps } from '@aws-cdk/aws-ec2';
-
availabilityZone¶ AWS::EC2::Volume.AvailabilityZonehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-availabilityzoneType: string or @aws-cdk/cdk.Token(abstract)
-
autoEnableIo¶ AWS::EC2::Volume.AutoEnableIOhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-autoenableioType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
encrypted¶ AWS::EC2::Volume.Encryptedhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-encryptedType: boolean or @aws-cdk/cdk.Tokenorundefined(abstract)
-
iops¶ AWS::EC2::Volume.Iopshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-iopsType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
kmsKeyId¶ AWS::EC2::Volume.KmsKeyIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-kmskeyidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-
size¶ AWS::EC2::Volume.Sizehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-sizeType: number or @aws-cdk/cdk.Tokenorundefined(abstract)
-
snapshotId¶ AWS::EC2::Volume.SnapshotIdhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-snapshotidType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
AWS::EC2::Volume.Tagshttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-tagsType: @aws-cdk/cdk.Tokenor (@aws-cdk/cdk.Tokenor@aws-cdk/cdk.Tag)[] orundefined(abstract)
-
volumeType¶ AWS::EC2::Volume.VolumeTypehttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html#cfn-ec2-ebs-volume-volumetypeType: string or @aws-cdk/cdk.Tokenorundefined(abstract)
-